GPUFragmentState
public final class GPUFragmentState
The configuration for the fragment shader stage and color output targets.
Summary
Public constructors |
|---|
GPUFragmentState( |
Public methods |
|
|---|---|
final @NonNull GPUConstantEntry[] |
An array of constant overrides for the fragment shader. |
final String |
|
final @NonNull GPUShaderModule |
The shader module containing the fragment entry point. |
final @NonNull GPUColorTargetState[] |
An array defining the configuration for each color attachment. |
final void |
setConstants(@NonNull GPUConstantEntry[] constants)An array of constant overrides for the fragment shader. |
final void |
setEntryPoint(String entryPoint) |
final void |
setModule(@NonNull GPUShaderModule module)The shader module containing the fragment entry point. |
final void |
setTargets(@NonNull GPUColorTargetState[] targets)An array defining the configuration for each color attachment. |
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 constant overrides for the fragment shader.
getModule
public final @NonNull GPUShaderModule getModule()
The shader module containing the fragment entry point.
getTargets
public final @NonNull GPUColorTargetState[] getTargets()
An array defining the configuration for each color attachment.
setConstants
public final void setConstants(@NonNull GPUConstantEntry[] constants)
An array of constant overrides for the fragment shader.
setModule
public final void setModule(@NonNull GPUShaderModule module)
The shader module containing the fragment entry point.
setTargets
public final void setTargets(@NonNull GPUColorTargetState[] targets)
An array defining the configuration for each color attachment.