Creates an attribute.
The name of the attribute in the WebGL program.
The buffer which supplies data to the attribute.
The number of components per vertex attribute.
Whether to normalize the data after getting it from the buffer.
The offset in bytes between the beginning of consecutive
vertex attributes. Must not exceed 0xFF
.
The offset in bytes of the first component in the buffer.
Readonly
bufferThe buffer which supplies data to the attribute.
Readonly
contextThe rendering context of this buffer.
Readonly
nameThe name of this attribute in a shader program.
Whether to normalize data after getting it from this buffer.
The offset in bytes of the first component in the buffer.
The number of components per vertex attribute.
The offset in bytes between the beginning of consecutive vertex
attributes. Must not exceed 0xFF
.
The type of each component in this buffer.
Uses this attribute in a program.
The program to use this attribute in.
Generated using TypeDoc
Information about how to access data in a buffer.