logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glTransformFeedbackBufferRange - bind a range within a buffer object to a transform feedback buffer

C Specification

voidglTransformFeedbackBufferRange(GLuintxfb,GLuintindex,GLuintbuffer,GLintptroffset,GLsizeisize);

Description

glTransformFeedbackBufferRange binds a range of the buffer object buffer represented by offset and size
       to the binding point at index index of the transform feedback object xfb.

       offset specifies the offset in basic machine units into the buffer object buffer and size specifies the
       amount of data that can be read from the buffer object while used as an indexed target.

Errors

GL_INVALID_OPERATION is generated if xfb is not the name of an existing transform feedback object.

       GL_INVALID_VALUE is generated if in buffer is not zero or the name of an existing buffer object.

       GL_INVALID_VALUE is generated if index is greater than or equal to the number of transform feedback
       buffer binding points (the value of GL_TRANSFORM_FEEDBACK_BUFFER_BINDING).

       GL_INVALID_VALUE is generated if offset is negative.

       GL_INVALID_VALUE is generated if buffer is non-zero and either size is less than or equal to zero, or
       offset + size is greater than the value of GL_BUFFER_SIZE for buffer.

Name

       glTransformFeedbackBufferRange - bind a range within a buffer object to a transform feedback buffer
       object

Notes

Parameters

xfb
           Name of the transform feedback buffer object.

       index
           Index of the binding point within xfb.

       buffer
           Name of the buffer object to bind to the specified binding point.

       offset
           The starting offset in basic machine units into the buffer object.

       size
           The amount of data in basic machine units that can be read from or written to the buffer object while
           used as an indexed target.

See Also

glBindBufferRange(), glBindBufferBase(), glTransformFeedbackBufferBase().

Version Support

       ┌────────────────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                                │                OpenGLVersion                                         │
       ├────────────────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                              │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature                        │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name                           │     │     │     │     │     │     │     │     │     │     │     │     │
       ├────────────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glTransformFeedbackBufferRange │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
       └────────────────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also