PixelShaderAttribute
Description
- Derived from
-
Shader 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:
[PixelShader]
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'.
Usages
Demo.PS method
Example.PS method
Example.PS_Centroid method
Example.PS_Sample method
Graphics.PS method
Model.PS_Pixel method
Model.PS_Sample method
Model.PS_Shadow method
Model.PS_Transparent method
Process.PS_Blur method
Process.PS_Transparency method
Renderer.PS method
Sky.PS_Color method
Sky.PS_Map method
Terrain.PS_Background method
Terrain.PS_Color method
Terrain.PS_Decal method
Terrain.PS_Highlight method
Terrain.PS_Material1 method
Terrain.PS_Material2 method
Terrain.PS_Shadow method
Terrain.PS_Texture method
Terrain.PS_Wireframe method