VertexState


public final class VertexState


The configuration for the vertex shader stage and vertex buffers.

Summary

Public constructors

VertexState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull ConstantEntry[] constants,
    @NonNull VertexBufferLayout[] buffers
)

Public methods

final @NonNull VertexBufferLayout[]

An array defining the layout of all vertex buffers.

final @NonNull ConstantEntry[]

An array of constant overrides for the vertex shader.

final String
final @NonNull GPUShaderModule

The shader module containing the vertex entry point.

final void
setBuffers(@NonNull VertexBufferLayout[] buffers)

An array defining the layout of all vertex buffers.

final void
setConstants(@NonNull ConstantEntry[] constants)

An array of constant overrides for the vertex shader.

final void
setEntryPoint(String entryPoint)
final void

The shader module containing the vertex entry point.

Public constructors

VertexState

Added in 1.0.0-alpha01
public VertexState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull ConstantEntry[] constants,
    @NonNull VertexBufferLayout[] buffers
)

Public methods

getBuffers

Added in 1.0.0-alpha01
public final @NonNull VertexBufferLayout[] getBuffers()

An array defining the layout of all vertex buffers.

getConstants

Added in 1.0.0-alpha01
public final @NonNull ConstantEntry[] getConstants()

An array of constant overrides for the vertex shader.

getEntryPoint

Added in 1.0.0-alpha01
public final String getEntryPoint()

getModule

Added in 1.0.0-alpha01
public final @NonNull GPUShaderModule getModule()

The shader module containing the vertex entry point.

setBuffers

Added in 1.0.0-alpha01
public final void setBuffers(@NonNull VertexBufferLayout[] buffers)

An array defining the layout of all vertex buffers.

setConstants

Added in 1.0.0-alpha01
public final void setConstants(@NonNull ConstantEntry[] constants)

An array of constant overrides for the vertex shader.

setEntryPoint

Added in 1.0.0-alpha01
public final void setEntryPoint(String entryPoint)

setModule

Added in 1.0.0-alpha01
public final void setModule(@NonNull GPUShaderModule module)

The shader module containing the vertex entry point.