Table of Contents

Interface IFragmentShader<TInput, TOutput, TBindings>

Namespace
Xui.GPU.Shaders
Assembly
Xui.Core.dll

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

TInput

The fragment input/varyings structure type.

TOutput

The fragment output structure type.

TBindings

The 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

input TInput

The interpolated fragment input data.

bindings TBindings

The shader resource bindings.

Returns

TOutput

The computed fragment output.