GPUVertexState


public final class GPUVertexState


The configuration for the vertex shader stage and vertex buffers.

Summary

Public constructors

GPUVertexState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants,
    @NonNull GPUVertexBufferLayout[] buffers
)

Public methods

final @NonNull GPUVertexBufferLayout[]

An array defining the layout of all vertex buffers.

final @NonNull GPUConstantEntry[]

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 GPUVertexBufferLayout[] buffers)

An array defining the layout of all vertex buffers.

final void
setConstants(@NonNull GPUConstantEntry[] 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

GPUVertexState

Added in 1.0.0-alpha02
public GPUVertexState(
    @NonNull GPUShaderModule module,
    String entryPoint,
    @NonNull GPUConstantEntry[] constants,
    @NonNull GPUVertexBufferLayout[] buffers
)

Public methods

getBuffers

Added in 1.0.0-alpha02
public final @NonNull GPUVertexBufferLayout[] getBuffers()

An array defining the layout of all vertex buffers.

getConstants

Added in 1.0.0-alpha02
public final @NonNull GPUConstantEntry[] getConstants()

An array of constant overrides for the vertex shader.

getEntryPoint

Added in 1.0.0-alpha02
public final String getEntryPoint()

getModule

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

The shader module containing the vertex entry point.

setBuffers

Added in 1.0.0-alpha02
public final void setBuffers(@NonNull GPUVertexBufferLayout[] buffers)

An array defining the layout of all vertex buffers.

setConstants

Added in 1.0.0-alpha02
public final void setConstants(@NonNull GPUConstantEntry[] constants)

An array of constant overrides for the vertex shader.

setEntryPoint

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

setModule

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

The shader module containing the vertex entry point.