Properties:
Name | Type | Description |
---|---|---|
buffer |
Buffer |
the buffer that this attributes data belongs to |
format |
VertexFormat |
the format of the attribute |
instance |
boolean |
is this an instanced buffer? (defaults to false) |
location |
number |
set where the shader location is for this attribute |
offset |
number |
the offset of the attribute from the buffer, defaults to 0 |
size |
number |
The number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn. |
start |
number |
The starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex. |
stride |
number |
the stride of the data in the buffer |
type |
number |
the type of attribute |
Members
buffer Buffer
the buffer that this attributes data belongs to
format VertexFormat
the format of the attribute
is this an instanced buffer? (defaults to false)
set where the shader location is for this attribute
the offset of the attribute from the buffer, defaults to 0
The number of elements to be rendered. If not specified, all vertices after the starting vertex will be drawn.
The starting vertex in the geometry to start drawing from. If not specified, drawing will start from the first vertex.
the stride of the data in the buffer
the type of attribute