Class ARBCopyImage
- java.lang.Object
-
- org.lwjgl.opengl.ARBCopyImage
-
public class ARBCopyImage extends java.lang.Object
Native bindings to the ARB_copy_image extension.This extension enables efficient image data transfer between image objects (i.e. textures and renderbuffers) without the need to bind the objects or otherwise configure the rendering pipeline.
This is accomplised by adding a new entry-point
CopyImageSubData
, which takes a named source and destination.CopyImageSubData does not perform general-purpose conversions such as scaling, resizing, blending, color-space, or format conversions. It should be considered to operate in a manner similar to a CPU
memcpy
, but using the GPU for the copy.CopyImageSubData supports copies between images with different internal formats, if the formats are compatible for TextureViews.
CopyImageSubData also supports copying between compressed and uncompressed images if the compressed block / uncompressed texel sizes are the same.
Promoted to core in
OpenGL 4.3
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glCopyImageSubData(int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth)
Performs a raw data copy between two images.
-
-
-
Method Detail
-
glCopyImageSubData
public static void glCopyImageSubData(int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int srcWidth, int srcHeight, int srcDepth)
Performs a raw data copy between two images.- Parameters:
srcName
- the name of a texture or renderbuffer object from which to copysrcTarget
- the target representing the namespace of the source namesrcName
srcLevel
- the mipmap level to read from the sourcesrcX
- the X coordinate of the left edge of the souce region to copysrcY
- the Y coordinate of the top edge of the souce region to copysrcZ
- the Z coordinate of the near edge of the souce region to copydstName
- the name of a texture or renderbuffer object to which to copydstTarget
- the target representing the namespace of the destination namedstName
dstLevel
- the mipmap level to write to the sourcedstX
- the X coordinate of the left edge of the destination regiondstY
- the Y coordinate of the top edge of the destination regiondstZ
- the Z coordinate of the near edge of the destination regionsrcWidth
- the width of the region to be copiedsrcHeight
- the height of the region to be copiedsrcDepth
- the depth of the region to be copied
-
-