-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPIR-V] vk::ext_capability doesn't propagate correctly #6576
Comments
nipunG314
added
bug
Bug, regression, crash
needs-triage
Awaiting triage
spirv
Work related to SPIR-V
labels
May 1, 2024
Thanks for reporting @nipunG314 ! These are the rules for where
https://github.com/microsoft/DirectXShaderCompiler/wiki/GL_EXT_spirv_intrinsics-for-SPIR-V-code-gen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The
[[vk::ext_capability(...)]]
tag doesn't propagate if it isn't attached to a[[vk::ext_instruction(...)]]
tag. It should either work on every method/function or give errors/warnings on the ones its not supposed to work on/will be ignored. Right now, we're forced to create a specialized version of the same templated function if we want to support a capability only on certain types (e.g. PhysicalStorageBufferAddresses for pointers, but not for builtin types like uint32_t)Steps to Reproduce
https://godbolt.org/z/PjY3TTq1K
The
[[vk::ext_capability(/*PhysicalStorageBufferAddresses */ 5347 )]]
at line 17 isn't being propagated correctly. If you uncomment line 13, it compiles correctly.Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: