This extension provides a new mode to the GL, called transform feedback, which records selected vertex attributes for each primitive processed by the GL. The selected attributes are written into buffer objects, and can be written with each attribute in a separate buffer object or with all attributes interleaved into a single buffer object. If a geometry shader is active, the primitives recorded are those emitted by the geometry shader. Otherwise, transform feedback captures primitives whose vertices are transformed by a vertex shader. In either case, the primitives captured are those generated prior to clipping. Transform feedback mode captures the values of specified varying variables emitted from GLSL vertex or geometry shaders.
The vertex data recorded in transform feedback mode is stored into buffer objects as an array of vertex attributes. The regular representation and the
use of buffer objects allows the recorded data to be processed directly by the GL without requiring CPU intervention to copy data. In particular,
transform feedback data can be used for vertex arrays (via vertex buffer objects), as the source for pixel data (via pixel buffer objects), as shader
constant data (via the NV_parameter_buffer_object or EXT_bindable_uniform extensions), or via any other extension that
makes use of buffer objects.
This extension introduces new query object support to allow transform feedback mode to operate asynchronously. Query objects allow applications to determine when transform feedback results are complete, as well as the number of primitives processed and written back to buffer objects while in transform feedback mode. This extension also provides a new rasterizer discard enable, which allows applications to use transform feedback to capture vertex attributes without rendering anything.
Requires OpenGL 2. or ARB_shader_objects. Promoted to core in OpenGL 3..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_INTERLEAVED_ATTRIBS_EXT
Accepted by the |
| public static final int | GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT
Accepted by the |
| public static final int | GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT
Accepted by the |
| public static final int | GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT
Accepted by the |
| public static final int | GL_PRIMITIVES_GENERATED_EXT
Accepted by the |
| public static final int | GL_RASTERIZER_DISCARD_EXT
Accepted by the |
| public static final int | GL_SEPARATE_ATTRIBS_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_BUFFER_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT
Accepted by the |
| public static final int | GL_TRANSFORM_FEEDBACK_VARYINGS_EXT
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static boolean | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static void | glGetTransformFeedbackVaryingEXT(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name)
|
| public static String | glGetTransformFeedbackVaryingEXT(int program, int index, int bufSize, IntBuffer size, IntBuffer type)
|
| public static String | |
| public static void | glGetTransformFeedbackVaryingEXT(int program, int index, int[] length, int[] size, int[] type, ByteBuffer name)
Array version of: |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static native void | nglGetTransformFeedbackVaryingEXT(int program, int index, int bufSize, long length, long size, long type, long name)
|
| public static native void |
| GL_INTERLEAVED_ATTRIBS_EXT | back to summary |
|---|---|
| public static final int GL_INTERLEAVED_ATTRIBS_EXT Accepted by the | |
| GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT | back to summary |
|---|---|
| public static final int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT Accepted by the | |
| GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT | back to summary |
|---|---|
| public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT Accepted by the | |
| GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT | back to summary |
|---|---|
| public static final int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT Accepted by the | |
| GL_PRIMITIVES_GENERATED_EXT | back to summary |
|---|---|
| public static final int GL_PRIMITIVES_GENERATED_EXT Accepted by the | |
| GL_RASTERIZER_DISCARD_EXT | back to summary |
|---|---|
| public static final int GL_RASTERIZER_DISCARD_EXT Accepted by the | |
| GL_SEPARATE_ATTRIBS_EXT | back to summary |
|---|---|
| public static final int GL_SEPARATE_ATTRIBS_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_BUFFER_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_BUFFER_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT Accepted by the | |
| GL_TRANSFORM_FEEDBACK_VARYINGS_EXT | back to summary |
|---|---|
| public static final int GL_TRANSFORM_FEEDBACK_VARYINGS_EXT Accepted by the | |
| EXTTransformFeedback | back to summary |
|---|---|
| protected EXTTransformFeedback() | |
| glBeginTransformFeedbackEXT | back to summary |
|---|---|
| public static native void glBeginTransformFeedbackEXT(int primitiveMode) | |
| glBindBufferBaseEXT | back to summary |
|---|---|
| public static native void glBindBufferBaseEXT(int target, int index, int buffer) | |
| glBindBufferOffsetEXT | back to summary |
|---|---|
| public static native void glBindBufferOffsetEXT(int target, int index, int buffer, long offset) | |
| glBindBufferRangeEXT | back to summary |
|---|---|
| public static native void glBindBufferRangeEXT(int target, int index, int buffer, long offset, long size) | |
| glEndTransformFeedbackEXT | back to summary |
|---|---|
| public static native void glEndTransformFeedbackEXT() | |
| glGetBooleanIndexedEXT | back to summary |
|---|---|
public static boolean glGetBooleanIndexedEXT(int target, int index)
| |
| glGetBooleanIndexedvEXT | back to summary |
|---|---|
| public static void glGetBooleanIndexedvEXT(int target, int index, ByteBuffer data) | |
| glGetIntegerIndexedEXT | back to summary |
|---|---|
public static int glGetIntegerIndexedEXT(int target, int index)
| |
| glGetIntegerIndexedvEXT | back to summary |
|---|---|
| public static void glGetIntegerIndexedvEXT(int target, int index, IntBuffer data) | |
| glGetIntegerIndexedvEXT | back to summary |
|---|---|
| public static void glGetIntegerIndexedvEXT(int target, int index, int[] data) Array version of: | |
| glGetTransformFeedbackVaryingEXT | back to summary |
|---|---|
| public static void glGetTransformFeedbackVaryingEXT(int program, int index, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) | |
| glGetTransformFeedbackVaryingEXT | back to summary |
|---|---|
public static String glGetTransformFeedbackVaryingEXT(int program, int index, int bufSize, IntBuffer size, IntBuffer type)
| |
| glGetTransformFeedbackVaryingEXT | back to summary |
|---|---|
public static String glGetTransformFeedbackVaryingEXT(int program, int index, IntBuffer size, IntBuffer type)
| |
| glGetTransformFeedbackVaryingEXT | back to summary |
|---|---|
| public static void glGetTransformFeedbackVaryingEXT(int program, int index, int[] length, int[] size, int[] type, ByteBuffer name) Array version of: | |
| glTransformFeedbackVaryingsEXT | back to summary |
|---|---|
| public static void glTransformFeedbackVaryingsEXT(int program, PointerBuffer varyings, int bufferMode) | |
| glTransformFeedbackVaryingsEXT | back to summary |
|---|---|
| public static void glTransformFeedbackVaryingsEXT(int program, CharSequence[] varyings, int bufferMode) | |
| glTransformFeedbackVaryingsEXT | back to summary |
|---|---|
| public static void glTransformFeedbackVaryingsEXT(int program, CharSequence varying, int bufferMode) | |
| nglGetBooleanIndexedvEXT | back to summary |
|---|---|
| public static void nglGetBooleanIndexedvEXT(int target, int index, long data) | |
| nglGetIntegerIndexedvEXT | back to summary |
|---|---|
| public static void nglGetIntegerIndexedvEXT(int target, int index, long data) | |
| nglGetTransformFeedbackVaryingEXT | back to summary |
|---|---|
| public static native void nglGetTransformFeedbackVaryingEXT(int program, int index, int bufSize, long length, long size, long type, long name) | |
| nglTransformFeedbackVaryingsEXT | back to summary |
|---|---|
| public static native void nglTransformFeedbackVaryingsEXT(int program, int count, long varyings, int bufferMode) | |