Browse Source

DebugTools: add a TODO.

pull/674/head
Vladimír Vondruš 1 year ago
parent
commit
67d0122c79
  1. 6
      src/Magnum/DebugTools/TextureImage.cpp

6
src/Magnum/DebugTools/TextureImage.cpp

@ -239,6 +239,12 @@ GL::BufferImage2D textureSubImage(GL::Texture2D& texture, const Int level, const
#endif
void textureSubImage(GL::CubeMapTexture& texture, const GL::CubeMapCoordinate coordinate, const Int level, const Range2Di& range, Image2D& image) {
/* Compared to textureSubImage(GL::CubeMapTexture&, ..., Image3D&), here's
no ARB_get_texture_sub_image code path because it only works with 3D
images */
/** @todo implement a Image3D variant with this extension used once
convenient Image slicing and direct allocation is done */
GL::Framebuffer fb{range};
fb.attachCubeMapTexture(GL::Framebuffer::ColorAttachment{0}, texture, coordinate, level);

Loading…
Cancel
Save