VertexShaderAttribute

Description

sealed class Tinman.Gpu.Semantic.VertexShaderAttribute

Derived from

Attribute abstract

The annotated method is the top-level entry point for a Vertex Shader (VS).

A Vertex Shader method must have the following syntactic form:

[VertexShader]
public static OUTPUT NAME(INPUT data, ...)
{
  OUTPUT result;
  ...
  return result;
}

The placeholders have the following meaning:

  • NAME :
    The name of the Vertex Shader.

  • INPUT :
    A stage parameter struct that holds input data. There may be more than one input parameter. Should be named 'data'.

  • OUTPUT :
    A stage parameter struct that holds the output data. Must be named 'result'.