GeometryShaderAttribute
Description
- Derived from
-
Shader abstract
The annotated method is the top-level entry point for a Geometry Shader (GS), for example:
[GeometryShader(TRIANGLE, TRIANGLE, 6)]
public static void GS_GeometryShaderMaterial(DataIn[] data, STREAM<DataOut> stream)
{
gxStreamAppend(stream, ...);
gxStreamAppend(stream, ...);
gxStreamAppend(stream, ...);
gxStreamReset(stream);
gxStreamAppend(stream, ...);
gxStreamAppend(stream, ...);
gxStreamAppend(stream, ...);
}
A Geometry Shader method must have exactly two parameters:
-
An array of StageInOut struct values (which has an implicit fixed size that correlates with the Input topology). Must be named
'data'. -
A STREAM object (where
Tis a StageInOut struct type) that outputs a primitive strip according to the Output topology. Must be named'stream'.
The return type of a Geometry Shader method must be CxTypeSimple.Void.
Usages
Example.GS method
Graphics.GS_Line method
Graphics.GS_Point method
Model.GS_Line method
Model.GS_Point method
Renderer.GS_Point method
Renderer.GS_Thick method
Renderer.GS_Thin method
Terrain.GS_Material method