BufferView

A view into a buffer generally representing a subset of the buffer.

Constructors

this
this(int buffer, int byteOffset, int byteLength, int byteStride, int target)
Undocumented in source.

Members

Variables

buffer
int buffer;

REQUIRED. The index of the buffer.

byteLength
size_t byteLength;

The length of the bufferView in bytes. REQUIRED. Minimum 1. 0 is invalid.

byteOffset
size_t byteOffset;

The offset into the buffer in bytes. Minimum 0, default 0.

byteStride
size_t byteStride;

The stride, in bytes. Minimum 4. Maximum 252 (multiple of 4). Default 0 is understood to be tightly packed.

name
string name;

The name of the bufferView.

target
int target;

The hint representing the intended GPU buffer type to use with this buffer view. ["ARRAY_BUFFER", "ELEMENT_ARRAY_BUFFER"] for vertex indices or attribs. Could be 0 for other data.

Meta