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
Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn #2907
These would return the index start offsets passed to DrawIndexedInstanced in the corresponding BaseVertexLocation and StartInstanceLocation arguments. GLSL has the equivalent values: gl_BaseVertex and gl_BaseInstance. While the names are long, they match the API, and consistency is important.
These have been an ongoing request, and can save extra root argument overhead required to get these without built-in support.
edited to fix BaseVertexLocation name (StartVertexLocation is from DrawInstanced, not DrawIndexedInstanced).
Reacted by Adam Miles, Ehsan, Andrew Depke, John Kelly, Sebastian Aaltonen, otanter-at-ubi, Ruslan Kutdusov, Squall Leonhart, Sarah Dubois, OleksandrHlushchukDLE and 14 more
While we do have StartInstanceLocation in the API, the other one I think corresponds to BaseVertexLocation? There's no 'StartVertexLocation' in the Draw command API.
Reacted by John Kelly, otanter-at-ubi, Sarah Dubois and AndreyVK_D3D
changed the title [-]Add SV_StartVertexLocation and SV_StartInstanceLocation to VSIn[/-][+]Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn[/+]on Aug 6, 2020
+1e9 to this. Implementing advanced cross-platform GPU-driven rendering techniques is extremely inconvenient without automatic SV_StartInstanceLocation. Workarounds exist, but they're very yucky.
Activity
AdamJMiles commentedon May 26, 2020
While we do have StartInstanceLocation in the API, the other one I think corresponds to BaseVertexLocation? There's no 'StartVertexLocation' in the Draw command API.
sebbbi commentedon May 28, 2020
DrawIndexedInstanced arguments and the indirect argument struct has these:
gl_BaseInstance = StartInstanceLocation
gl_BaseVertex = BaseVertexLocation
otanter-at-ubi commentedon Jun 8, 2020
I second all of these. We've asked for them a few years ago at the xfest.
[-]Add SV_StartVertexLocation and SV_StartInstanceLocation to VSIn[/-][+]Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn[/+]lijianwen13 commentedon May 14, 2023
I think it's very important for us to build cross-platform game engines.
yuriy-odonnell-epic commentedon Jun 3, 2023
+1e9 to this. Implementing advanced cross-platform GPU-driven rendering techniques is extremely inconvenient without automatic SV_StartInstanceLocation. Workarounds exist, but they're very yucky.
kingofthebongo2008 commentedon Jul 19, 2023
something about this?
if someone wants to help, where one can look?
Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn (#5770)
[VS Input] Add SV_BaseVertexLocation and SV_StartInstanceLocation to …