Class EXTMultisampledRenderToTexture
- java.lang.Object
-
- org.lwjgl.opengles.EXTMultisampledRenderToTexture
-
public class EXTMultisampledRenderToTexture extends java.lang.ObjectNative bindings to the EXT_multisampled_render_to_texture extension.This extension introduces functionality to perform multisampled rendering to a color renderable texture, without requiring an explicit resolve of multisample data.
Some GPU architectures - such as tile-based renderers - are capable of performing multisampled rendering by storing multisample data in internal high-speed memory and downsampling the data when writing out to external memory after rendering has finished. Since per-sample data is never written out to external memory, this approach saves bandwidth and storage space. In this case multisample data gets discarded, however this is acceptable in most cases.
The extension provides a new command, FramebufferTexture2DMultisampleEXT, which attaches a texture level to a framebuffer and enables multisampled rendering to that texture level.
When the texture level is flushed or used as a source or destination for any operation other than drawing to it, an implicit resolve of multisampled color data may be performed. After such a resolve, the multisampled color data is discarded.
In order to allow the use of multisampled depth and stencil buffers when performing multisampled rendering to a texture, the extension also adds the command RenderbufferStorageMultisampleEXT.
Requires
GLES 2.0.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXTAccepted by thepnameparameter of GetFramebufferAttachmentParameteriv.static intGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXTReturned by CheckFramebufferStatus.static intGL_MAX_SAMPLES_EXTAccepted by thepnameparameter of GetBooleanv, GetIntegerv, and GetFloatv.static intGL_RENDERBUFFER_SAMPLES_EXTAccepted by thepnameparameter of GetRenderbufferParameteriv.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglFramebufferTexture2DMultisampleEXT(int target, int attachment, int textarget, int texture, int level, int samples)static voidglRenderbufferStorageMultisampleEXT(int target, int samples, int internalformat, int width, int height)
-
-
-
Field Detail
-
GL_RENDERBUFFER_SAMPLES_EXT
public static final int GL_RENDERBUFFER_SAMPLES_EXT
Accepted by thepnameparameter of GetRenderbufferParameteriv.- See Also:
- Constant Field Values
-
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT
public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT
Returned by CheckFramebufferStatus.- See Also:
- Constant Field Values
-
GL_MAX_SAMPLES_EXT
public static final int GL_MAX_SAMPLES_EXT
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, and GetFloatv.- See Also:
- Constant Field Values
-
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT
Accepted by thepnameparameter of GetFramebufferAttachmentParameteriv.- See Also:
- Constant Field Values
-
-
Method Detail
-
glRenderbufferStorageMultisampleEXT
public static void glRenderbufferStorageMultisampleEXT(int target, int samples, int internalformat, int width, int height)
-
glFramebufferTexture2DMultisampleEXT
public static void glFramebufferTexture2DMultisampleEXT(int target, int attachment, int textarget, int texture, int level, int samples)
-
-