Skip to content

Allow cap and extention attribute on member variables and type aliases - #6742

Merged
Steven Perron (s-perron) merged 4 commits into
microsoft:mainfrom
s-perron:capability
Jul 17, 2024
Merged

Steven Perron (s-perron) merged 4 commits into
microsoft:mainfrom
s-perron:capability

Conversation

@s-perron

Copy link
Copy Markdown
Collaborator

This implements the changes proposed in
microsoft/hlsl-specs#270.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@s-perron
Steven Perron (s-perron) enabled auto-merge (squash) July 8, 2024 15:25

@Keenuts Nathan Gauër (Keenuts) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some nits!

Comment thread tools/clang/lib/SPIRV/SpirvEmitter.cpp Resolved
@github-actions

github-actions Bot commented Jul 17, 2024 •

Copy link
Copy Markdown
Contributor

✅ With the latest revision this PR passed the C/C++ code formatter.

This implements the changes proposed in
microsoft/hlsl-specs#270.

Note that this changes previous behaviour. The inline spir-v spec did
nto allow these attributes on variable declarations, but it was already
implemented. It was implmented in such a way that the capabilities and
extensions were added when the compiler sees a use of the variable. We
now add them when we see the declaration.

This is done because I did not want to try to process the attributes
every time we see the variable used.
@s-perron
Steven Perron (s-perron) merged commit 759e9e1 into microsoft:main Jul 17, 2024
@s-perron
Steven Perron (s-perron) deleted the capability branch July 17, 2024 17:26
Mxr (SjMxr233) pushed a commit to ShaderHelper/DirectXShaderCompiler that referenced this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants