Package org.lwjgl.opengles
Class IMGFramebufferDownsample
- java.lang.Object
-
- org.lwjgl.opengles.IMGFramebufferDownsample
-
public class IMGFramebufferDownsample extends java.lang.Object
Native bindings to the IMG_framebuffer_downsample extension.This extension introduces the ability to attach color buffers to a framebuffer that are at a lower resolution than the framebuffer itself, with the GPU automatically downsampling the color attachment to fit.
This can be useful for various post-process rendering techniques where it is desirable to generate downsampled images in an efficient manner, or for a lower resolution post-process technique.
This extension exposes at least a 2 x 2 downscale. Other downsampling modes may be exposed on the system and this can be queried.
-
-
Field Summary
Fields Modifier and Type Field Description static int
GL_DOWNSAMPLE_SCALES_IMG
Accepted by thetarget
parameter of GetIntegerv, GetInteger64v, GetIntegeri_v, GetInteger64i_v and GetInternalFormativ.static int
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG
Accepted by thepname
parameter of GetFramebufferAttachmentParameteriv.static int
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG
Returned by CheckFramebufferStatus.static int
GL_NUM_DOWNSAMPLE_SCALES_IMG
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetInteger64v, and GetInternalFormativ.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
glFramebufferTexture2DDownsampleIMG(int target, int attachment, int textarget, int texture, int level, int xscale, int yscale)
static void
glFramebufferTextureLayerDownsampleIMG(int target, int attachment, int texture, int level, int layer, int xscale, int yscale)
-
-
-
Field Detail
-
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG
public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG
Returned by CheckFramebufferStatus.- See Also:
- Constant Field Values
-
GL_NUM_DOWNSAMPLE_SCALES_IMG
public static final int GL_NUM_DOWNSAMPLE_SCALES_IMG
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, GetInteger64v, and GetInternalFormativ.- See Also:
- Constant Field Values
-
GL_DOWNSAMPLE_SCALES_IMG
public static final int GL_DOWNSAMPLE_SCALES_IMG
Accepted by thetarget
parameter of GetIntegerv, GetInteger64v, GetIntegeri_v, GetInteger64i_v and GetInternalFormativ.- See Also:
- Constant Field Values
-
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG
Accepted by thepname
parameter of GetFramebufferAttachmentParameteriv.- See Also:
- Constant Field Values
-
-
Method Detail
-
glFramebufferTexture2DDownsampleIMG
public static void glFramebufferTexture2DDownsampleIMG(int target, int attachment, int textarget, int texture, int level, int xscale, int yscale)
-
glFramebufferTextureLayerDownsampleIMG
public static void glFramebufferTextureLayerDownsampleIMG(int target, int attachment, int texture, int level, int layer, int xscale, int yscale)
-
-