GeometryShaderAttribute
Description
- Derived from
-
Attribute 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
T
is 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.