Support startVertex/startInstance on DX12 #1725
Labels
area: api
Issues related to API surface
area: performance
How fast things go
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
DX12 doesn't consider firstVertex/fistInstance to be included into
SV_VertexID
andSV_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!
The text was updated successfully, but these errors were encountered: