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).
These would return the index start offsets passed to
DrawIndexedInstancedin the correspondingBaseVertexLocationandStartInstanceLocationarguments. GLSL has the equivalent values:gl_BaseVertexandgl_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).