Home -> IVertexBuffer -> BindVertexAttributeManualLayout
Description
The BindVertexAttributeManualLayout method binds the specified VertexAttribute as a member of the buffer, with a manually defined buffer offset and stride.
Usage
SuccessToken BindVertexAttributeManualLayout(IVertexAttribute& vertexAttribute, size_t bufferOffsetInBytes, size_t bufferStrideInBytes);
Argument list
- vertexAttribute [IVertexAttribute]
- The vertex attribute to bind to this vertex buffer.
- bufferOffsetInBytes [size_t]
- The byte offset from the start of the buffer to the first vertex attribute value.
- bufferStrideInBytes [size_t]
- The byte stride between consecutive vertex attribute values.
Return value
- [SuccessToken]
- True if the operation succeeded, false otherwise. An assertion will be raised in debug builds if the result is not tested.