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.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_DOWNSAMPLE_SCALES_IMG
Accepted by the |
| public static final int | GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG
Accepted by the |
| public static final int | GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG
Returned by CheckFramebufferStatus. |
| public static final int | GL_NUM_DOWNSAMPLE_SCALES_IMG
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void | glFramebufferTexture2DDownsampleIMG(int target, int attachment, int textarget, int texture, int level, int xscale, int yscale)
|
| public static native void | glFramebufferTextureLayerDownsampleIMG(int target, int attachment, int texture, int level, int layer, int xscale, int yscale)
|
| GL_DOWNSAMPLE_SCALES_IMG | back to summary |
|---|---|
| public static final int GL_DOWNSAMPLE_SCALES_IMG Accepted by the | |
| GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG | back to summary |
|---|---|
| public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG Accepted by the | |
| GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG | back to summary |
|---|---|
| public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG Returned by CheckFramebufferStatus. | |
| GL_NUM_DOWNSAMPLE_SCALES_IMG | back to summary |
|---|---|
| public static final int GL_NUM_DOWNSAMPLE_SCALES_IMG Accepted by the | |
| IMGFramebufferDownsample | back to summary |
|---|---|
| protected IMGFramebufferDownsample() | |
| glFramebufferTexture2DDownsampleIMG | back to summary |
|---|---|
| public static native void glFramebufferTexture2DDownsampleIMG(int target, int attachment, int textarget, int texture, int level, int xscale, int yscale) | |
| glFramebufferTextureLayerDownsampleIMG | back to summary |
|---|---|
| public static native void glFramebufferTextureLayerDownsampleIMG(int target, int attachment, int texture, int level, int layer, int xscale, int yscale) | |