GPUVertexAttribute
class GPUVertexAttribute
Defines the format and offset for a single attribute in a vertex buffer.
Summary
Public constructors |
|---|
GPUVertexAttribute(format: Int, offset: Long, shaderLocation: Int) |
Public properties |
|
|---|---|
Int |
The data format of the attribute (e.g., float32x3, unorm8x4). |
Long |
The offset in bytes from the start of the vertex structure in the buffer. |
Int |
Public constructors
GPUVertexAttribute
Added in 1.0.0-alpha02
GPUVertexAttribute(format: Int, offset: Long, shaderLocation: Int)
Public properties
format
Added in 1.0.0-alpha02
var format: Int
The data format of the attribute (e.g., float32x3, unorm8x4).
offset
Added in 1.0.0-alpha02
var offset: Long
The offset in bytes from the start of the vertex structure in the buffer.