Skip to content

Add support for overriding vertex attribute/semantics#181

Open
aclysma wants to merge 3 commits intogrovesNL:masterfrom
aclysma:add-vertex-attribute-remap
Open

Add support for overriding vertex attribute/semantics#181
aclysma wants to merge 3 commits intogrovesNL:masterfrom
aclysma:add-vertex-attribute-remap

Conversation

@aclysma
Copy link
Copy Markdown
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