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 |
Related topics
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for