Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
dx12: Support VertexIndex and InstanceIndex semantics #2589
Nonzero base vertex or instance values are reflected properly when translating to HLSL.
We need to a new root constant into graphics pipeline layouts for storing these two values and push them on draw calls. The
Further investigation needed if we need to restrict it also to base vertex due to the
Steps for completion:
(@msiglreith can you check my logic on this? I'm not sure if I'm right or not, not super familiar with d3d12 ;p)
These two issues are basically the same, one for graphics pipelines and one for compute pipeline. We have 4 root constants spare IIRC, which will be shared for both pipeline types (basically like an union).