GPUFragmentState
public final class GPUFragmentState
Describes the fragment shader stage of a render pipeline.
Summary
Public constructors |
|---|
GPUFragmentState( |
Public methods |
|
|---|---|
final @NonNull GPUConstantEntry[] |
An array of pipeline-overridable constants. |
final String |
|
final @NonNull GPUShaderModule |
The shader module containing the fragment shader. |
final @NonNull GPUColorTargetState[] |
An array of color target states. |
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 fragment shader. |
final void |
setTargets(@NonNull GPUColorTargetState[] value)An array of color target states. |
Public constructors
GPUFragmentState
public GPUFragmentState(
@NonNull GPUShaderModule module,
String entryPoint,
@NonNull GPUConstantEntry[] constants,
@NonNull GPUColorTargetState[] targets
)
Public methods
getConstants
public final @NonNull GPUConstantEntry[] getConstants()
An array of pipeline-overridable constants.
getModule
public final @NonNull GPUShaderModule getModule()
The shader module containing the fragment shader.
getTargets
public final @NonNull GPUColorTargetState[] getTargets()
An array of color target states.
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 fragment shader.
setTargets
public final void setTargets(@NonNull GPUColorTargetState[] value)
An array of color target states.