Skip to content

[0011] Allows cap and ext attributes on variable declarations - #270

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

Steven Perron (s-perron) merged 3 commits into
microsoft:mainfrom
s-perron:i269

Conversation

@s-perron

@s-perron Steven Perron (s-perron) commented Jul 2, 2024 •

Copy link
Copy Markdown
Collaborator

To be able to add the necessary capabilities and extensions for
SpirvTypes, we have to be able to add the capabilities and extension
attributes to the variables of that type. This change updates the inline
spirv spec to allows those changes.

Fixes #269

To be able to add the necessary capabilities and extensions for
SpirvTypes, we have to be able to add the capabilities and extension
attributes to the variables of that type. This change updates the inline
spirv spec to allows those changes.
Comment thread proposals/0011-inline-spirv.md Resolved
@s-perron

Copy link
Copy Markdown
Collaborator Author

Chris B (@llvm-beanz) Does this change seem reasonable?

@llvm-beanz Chris B (llvm-beanz) 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.

Looks awesome! Sorry for the delay.

@s-perron
Steven Perron (s-perron) merged commit 2d1b663 into microsoft:main Jul 4, 2024
Steven Perron (s-perron) added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 4, 2024
Steven Perron (s-perron) added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 4, 2024
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.
Steven Perron (s-perron) added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 5, 2024
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.
Steven Perron (s-perron) added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 17, 2024
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.
Steven Perron (s-perron) added a commit to microsoft/DirectXShaderCompiler that referenced this pull request Jul 17, 2024
Steven Perron (s-perron) added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 18, 2024
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.
Chris B (llvm-beanz) pushed a commit to llvm-beanz/hlsl-specs that referenced this pull request Feb 9, 2025
…oft#270)

To be able to add the necessary capabilities and extensions for
SpirvTypes, we have to be able to add the capabilities and extension
attributes to the variables of that type. This change updates the inline
spirv spec to allow adding the capabilities and extension attributes to
type aliases, variables, and fields.
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

None yet

Development

Successfully merging this pull request may close these issues.

[0011] Allow vk::ext_capability and vk::ext_extension on fields

3 participants