Interface IFragmentShader<TInput, TOutput, TBindings>
Fragment shader interface that computes pixel colors.
public interface IFragmentShader<TInput, TOutput, TBindings> : IShaderStage where TInput : unmanaged where TOutput : unmanaged where TBindings : unmanaged
Type Parameters
TInputThe fragment input/varyings structure type.
TOutputThe fragment output structure type.
TBindingsThe shader resource bindings type.
Methods
Execute(TInput, in TBindings)
Executes the fragment shader for a single fragment.
TOutput Execute(TInput input, in TBindings bindings)
Parameters
inputTInputThe interpolated fragment input data.
bindingsTBindingsThe shader resource bindings.
Returns
- TOutput
The computed fragment output.