attribute [instance]¶
Description¶
Used on a geometry shader entry point to specify the number of instances to execute for each input primitive.
Signature¶
[instance(count : int)]
Parameters¶
count : int¶
The number of instances to execute for each input primitive.
Remarks¶
When using this attribute, a geometry shader can declare a parameter with SV_GSInstanceID semantic to get the instance index.