VertexAttribute


class VertexAttribute


Defines the format and offset for a single attribute in a vertex buffer.

Summary

Public constructors

VertexAttribute(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

VertexAttribute

Added in 1.0.0-alpha01
VertexAttribute(format: Int, offset: Long, shaderLocation: Int)

Public properties

format

Added in 1.0.0-alpha01
var formatInt

The data format of the attribute (e.g., float32x3, unorm8x4).

offset

Added in 1.0.0-alpha01
var offsetLong

The offset in bytes from the start of the vertex structure in the buffer.

shaderLocation

Added in 1.0.0-alpha01
var shaderLocationInt