VertexShaderAttribute
Description
- Derived from
-
Shader 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'
.
Usages
Demo.VS method
Example.VS method
Graphics.VS method
Model.VS_Default method
Model.VS_Instance method
Model.VS_InstanceShadow method
Model.VS_Shadow method
Process.VS method
Renderer.VS method
Sky.VS method
Terrain.VS_Background method
Terrain.VS_Color method
Terrain.VS_Decal method
Terrain.VS_Material1 method
Terrain.VS_Material2 method
Terrain.VS_Shadow method
Terrain.VS_Texture method