Skip to content

Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn #2907

@tex3d

Description

@tex3d

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature suggestionsm6.8Shader Model 6.8

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions