-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support startVertex/startInstance on DX12 #1725
Copy link
Copy link
Closed
Labels
area: apiIssues related to API surfaceIssues related to API surfacearea: performanceHow fast things goHow fast things gotype: enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
DX12 doesn't consider firstVertex/fistInstance to be included into SV_VertexID and SV_InstanceID semantic, but WebGPU requires this.
Describe the solution you'd like
Allocate 2 root constants in front of the signature, then have the shader glue these constants with builtin semantics when asked.
This extra functionality needs to be configurable, since there is a cost to having 2 root constants allocated for each pipeline.
Describe alternatives you've considered
Passing in buffers?
Additional context
We have a test for this, which is quite nice!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: apiIssues related to API surfaceIssues related to API surfacearea: performanceHow fast things goHow fast things gotype: enhancementNew feature or requestNew feature or request