Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for overriding vertex attribute/semantics #181

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aclysma
Copy link
Contributor

@aclysma aclysma commented May 8, 2023

By default, spirv-cross assigns the semantic "TEXCOORD#" to vertex input attributes where # is the binding index. I'd like to override these so that the generated HLSL semantic matches up with the names I'm already using to identify vertex attributes (i.e. COLOR or POSITION).

This exposes bindings for the spirv-cross API CompilerHLSL::add_vertex_attribute_remap.

This change includes the changes for #180. I'm happy for them to go in separately or together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant