sealed class Tinman.Gpu.Semantic.PixelShaderAttribute

Derived from

Attribute abstract

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

A Pixel Shader method must have the following syntactic form:

public static OUTPUT NAME(INPUT data, ...)
  OUTPUT result;
  return result;

The placeholders have the following meaning:

  • NAME :
    The name of the Pixel Shader.

  • INPUT :
    A stage parameter struct that holds input data. There may be zero or more input parameters. Should be named 'data'.

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