Interface IVertexBufferOptions
divisor?: number;
instanced?: boolean;
label?: string;
normalized?: boolean;
offset?: number;
postponeInternalCreation?: boolean;
size?: number;
stride?: number;
takeBufferOwnership?: boolean;
type?: number;
updatable?: boolean;
useBytes?: boolean;
}
Properties
Optionaldivisor
defines the instance divisor to use (default: 1, only used if instanced is true)
Optionalinstanced
whether the buffer is instanced (default: false)
Optionallabel
label to use for this vertex buffer (debugging purpose)
Optionalnormalized
whether the data contains normalized data (default: false)
Optionaloffset
the offset of the data (default: 0)
Optionalpostpone Internal Creation
whether to postpone creating the internal WebGL buffer (default: false)
Optionalsize
the number of components (will be automatically computed from the kind parameter if not specified)
Optionalstride
the stride (will be automatically computed from the kind parameter if not specified)
Optionaltake Buffer Ownership
defines if the buffer should be released when the vertex buffer is disposed (default: false)
Optionaltype
the type of the component (will be deduce from the data parameter if not specified)
Optionalupdatable
whether the data is updatable (default: false)
Optionaluse Bytes
set to true if stride and offset are in bytes (default: false)
Options to be used when creating a vertex buffer