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 format)

The format of the vertex attribute data.

final void
setOffset(long offset)

The offset in bytes from the beginning of the vertex.

final void
setShaderLocation(int shaderLocation)

Public constructors

GPUVertexAttribute

Added in 1.0.0-alpha04
public GPUVertexAttribute(int format, long offset, int shaderLocation)

Public methods

getFormat

Added in 1.0.0-alpha04
public final int getFormat()

The format of the vertex attribute data.

getOffset

Added in 1.0.0-alpha04
public final long getOffset()

The offset in bytes from the beginning of the vertex.

getShaderLocation

Added in 1.0.0-alpha04
public final int getShaderLocation()

setFormat

Added in 1.0.0-alpha04
public final void setFormat(int format)

The format of the vertex attribute data.

setOffset

Added in 1.0.0-alpha04
public final void setOffset(long offset)

The offset in bytes from the beginning of the vertex.

setShaderLocation

Added in 1.0.0-alpha04
public final void setShaderLocation(int shaderLocation)