GPUVertexAttribute


public final class GPUVertexAttribute

Describes a single vertex attribute.

Summary

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.

getShaderLocation

Added in 1.0.0-alpha05
public final int getShaderLocation()

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.

setShaderLocation

Added in 1.0.0-alpha05
public final void setShaderLocation(int value)