GPUVertexAttribute
public final class GPUVertexAttribute
Describes a single vertex attribute.
Summary
Public constructors |
|---|
GPUVertexAttribute(int format, long offset, int shaderLocation) |
Public methods |
|
|---|---|
final int |
The format of the vertex attribute data. |
final long |
The offset in bytes from the beginning of the vertex. |
final int |
|
final void |
setFormat(int value)The format of the vertex attribute data. |
final void |
setOffset(long value)The offset in bytes from the beginning of the vertex. |
final void |
setShaderLocation(int value) |
Public constructors
GPUVertexAttribute
Added in 1.0.0-alpha05
public GPUVertexAttribute(int format, long offset, int shaderLocation)
Public methods
getFormat
Added in 1.0.0-alpha05
public final int getFormat()
The format of the vertex attribute data.
getOffset
Added in 1.0.0-alpha05
public final long getOffset()
The offset in bytes from the beginning of the vertex.
setFormat
Added in 1.0.0-alpha05
public final void setFormat(int value)
The format of the vertex attribute data.
setOffset
Added in 1.0.0-alpha05
public final void setOffset(long value)
The offset in bytes from the beginning of the vertex.