GPUVertexState
public final class GPUVertexState
Describes the vertex shader stage of a render pipeline.
Summary
Public constructors |
|---|
GPUVertexState( |
Public methods |
|
|---|---|
final @NonNull GPUVertexBufferLayout[] |
An array of vertex buffer layouts. |
final @NonNull GPUConstantEntry[] |
An array of pipeline-overridable constants. |
final String |
|
final @NonNull GPUShaderModule |
The shader module containing the vertex shader. |
final void |
setBuffers(@NonNull GPUVertexBufferLayout[] value)An array of vertex buffer layouts. |
final void |
setConstants(@NonNull GPUConstantEntry[] value)An array of pipeline-overridable constants. |
final void |
setEntryPoint(String value) |
final void |
setModule(@NonNull GPUShaderModule value)The shader module containing the vertex shader. |
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 of vertex buffer layouts.
getConstants
public final @NonNull GPUConstantEntry[] getConstants()
An array of pipeline-overridable constants.
getModule
public final @NonNull GPUShaderModule getModule()
The shader module containing the vertex shader.
setBuffers
public final void setBuffers(@NonNull GPUVertexBufferLayout[] value)
An array of vertex buffer layouts.
setConstants
public final void setConstants(@NonNull GPUConstantEntry[] value)
An array of pipeline-overridable constants.
setModule
public final void setModule(@NonNull GPUShaderModule value)
The shader module containing the vertex shader.