Repository navigation
[0011] Allows cap and ext attributes on variable declarations - #270
Merged
Merged
Conversation
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.
Steven Perron (s-perron)
requested review from
Nathan Gauër (Keenuts) and
Chris B (llvm-beanz)
July 2, 2024 15:35
Steven Perron (s-perron)
added a commit
to s-perron/DirectXShaderCompiler
that referenced
this pull request
Jul 3, 2024
This implements the changes proposed in microsoft/hlsl-specs#270.
Collaborator
Author
|
Chris B (@llvm-beanz) Does this change seem reasonable? |
Chris B (llvm-beanz)
approved these changes
Jul 3, 2024
Chris B (llvm-beanz)
left a comment
Collaborator
There was a problem hiding this comment.
Looks awesome! Sorry for the delay.
Nathan Gauër (Keenuts)
approved these changes
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.
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
#6742) This implements the changes proposed in microsoft/hlsl-specs#270.
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
microsoft#6742) This implements the changes proposed in microsoft/hlsl-specs#270.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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