instance

Use this attribute to instance a geometry shader.

instance(X)   

Remarks

X is an integer index that indicates the number of instances to be executed for each drawn item (for example, for each triangle). When using this attribute, use SV_GSInstanceID to identify which instance of a geometry shader is being executed.

This attribute is supported in the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x

 

Shader Model 5 Attributes

Shader Model 5