Vocabulary
gpu.textures

Inputs
tdta texture-data-target
levelan integer
gpu-data-ptra gpu-data-ptr


Outputs
None

Word description
Reads the entire image for the level th level of detail of a texture into the CPU or GPU memory referenced by gpu-data-ptr. The format of the written data is determined by the component-order and component-type of the texture.

Notes
Reading texture data into a GPU buffer-ptr requires OpenGL 2.1 or later or the GL_ARB_pixel_buffer_object extension.

See also
read-compressed-texture, read-compressed-texture-to, read-texture, read-texture-image

Definition