GPUVertexState
public final class GPUVertexState
The configuration for the vertex shader stage and vertex buffers.
Summary
Public constructors |
|---|
GPUVertexState( |
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 |
setModule(@NonNull GPUShaderModule module)The shader module containing the vertex entry point. |
Public constructors
GPUVertexState
public GPUVertexState(
@NonNull GPUShaderModule module,
String entryPoint,
@NonNull GPUConstantEntry[] constants,
@NonNull GPUVertexBufferLayout[] buffers
)
Public methods
getBuffers
public final @NonNull GPUVertexBufferLayout[] getBuffers()
An array defining the layout of all vertex buffers.
getConstants
public final @NonNull GPUConstantEntry[] getConstants()
An array of constant overrides for the vertex shader.
getModule
public final @NonNull GPUShaderModule getModule()
The shader module containing the vertex entry point.
setBuffers
public final void setBuffers(@NonNull GPUVertexBufferLayout[] buffers)
An array defining the layout of all vertex buffers.
setConstants
public final void setConstants(@NonNull GPUConstantEntry[] constants)
An array of constant overrides for the vertex shader.
setModule
public final void setModule(@NonNull GPUShaderModule module)
The shader module containing the vertex entry point.