WGPUVertexBufferLayout

value class WGPUVertexBufferLayout(val $mem: MemorySegment)

If attributes is empty and stepMode is WGPUVertexStepMode.Undefined, indicates a "hole" in the parent WGPUVertexState.buffers array, with behavior equivalent to null in the JS API.

If attributes is empty but stepMode is not WGPUVertexStepMode.Undefined, indicates a vertex buffer with no attributes, with behavior equivalent to { attributes: [] } in the JS API. (TODO: If the JS API changes not to distinguish these cases, then this distinction doesn't matter and we can remove this documentation.)

If stepMode is WGPUVertexStepMode.Undefined but attributes is not empty, stepMode defaults to WGPUVertexStepMode.Vertex.

Constructors

Link copied to clipboard
constructor(gc: Boolean)
constructor($mem: MemorySegment)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val $mem: MemorySegment
Link copied to clipboard
var arrayStride: <Error class: unknown class>

TODO

Link copied to clipboard
var attributeCount: <Error class: unknown class>

Array count for attributes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard