You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] Automatically map SV_BaseVertexLocation/SV_StartInstanceLocation to BaseVertex/BaseInstance #6671
Shader model 6.8 added two new semantics to refer to the base instance and vertex index of a draw call within a vertex shader. #2907 explicitly mentions that they are semanitcally equal to the SPIR-V builtin variables BaseVertex and BaseInstance. As a result I was a bit surprised that they are currently not mapped automatically to those when compiling to SPIR-V. Instead attempting to compile a shader produces the error semantic SV_StartInstanceLocation unimplemented. To fix this, I manually have to specify the [[vk::builtin("BaseInstance")]] attribute, which then produces a warning if I attempt to compile the shader for DXIL.
changed the title [-][SPIR-V] Automatically map SV_BaseVertexLocation/SV_StartInstanceLocation to BaseVertex/BaseVertex[/-][+][SPIR-V] Automatically map SV_BaseVertexLocation/SV_StartInstanceLocation to BaseVertex/BaseInstance[/+]on Jun 5, 2024
Hi!
Thanks for the feedback! I added this in our SM6.8 task list.
Right now our team is a bit short of staff so I cannot give a time estimate, but we'll get to that eventually. 😊
Activity
[-][SPIR-V] Automatically map SV_BaseVertexLocation/SV_StartInstanceLocation to BaseVertex/BaseVertex[/-][+][SPIR-V] Automatically map SV_BaseVertexLocation/SV_StartInstanceLocation to BaseVertex/BaseInstance[/+]Keenuts commentedon Jun 6, 2024
Hi!
Thanks for the feedback! I added this in our SM6.8 task list.
Right now our team is a bit short of staff so I cannot give a time estimate, but we'll get to that eventually. 😊