Skip to content

Conversation

@xen2
Copy link
Contributor

@xen2 xen2 commented Dec 15, 2025

Related issues: #1687 #2461

This PR adds an optional flag --hlsl-user-semantic which will process Decoration UserSemantic to generate HLSL semantic names.

I set it off by default, but let me know if you think this should be on by default.
It only happens when SPIR-V has UserSemantic, so my opinion would be to simply remove the parameter and set it on by default.

If Decoration UserSemantic is not specified for some variables/struct members, it will fallback to the default mechanism (either add_vertex_attribute_remap or TEXCOORD#).

I still need to run a few more tests to check all situations are working as intended
(I only tested it with top-level variables, not with a struct with its member having semantic, but it should work).

@CLAassistant
Copy link

CLAassistant commented Dec 15, 2025

CLA assistant check
All committers have signed the CLA.

@HansKristian-Work HansKristian-Work merged commit 1b8dcd4 into KhronosGroup:main Dec 19, 2025
10 checks passed
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.

3 participants