Table of Contents

Interface IVertexShader<TInput, TOutput, TBindings>

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

Vertex shader interface that transforms vertex input data.

public interface IVertexShader<TInput, TOutput, TBindings> : IShaderStage where TInput : unmanaged where TOutput : unmanaged where TBindings : unmanaged

Type Parameters

TInput

The vertex input structure type.

TOutput

The vertex output/varyings structure type.

TBindings

The shader resource bindings type.

Methods

Execute(TInput, in TBindings)

Executes the vertex shader for a single vertex.

TOutput Execute(TInput input, in TBindings bindings)

Parameters

input TInput

The vertex input data.

bindings TBindings

The shader resource bindings.

Returns

TOutput

The transformed vertex output.