-
Notifications
You must be signed in to change notification settings - Fork 35
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
[202x] Propose adding vk::SampledTexture* types #343
base: main
Are you sure you want to change the base?
Conversation
This proposal adds a set of `vk::SampledTexture*` types to represent SPIR-V's sampled image types. The intent is to replace and deprecate the `[[vk::combinedImageSampler]]` annotation. I have created this with the extension template with the intent of using the fast-track process, as this is a platform-specific feature that is already supported by all Vulkan hardware and drivers, and it does not change any existing language behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generally look good to me. The only other detail is to consider how this will be implemented in clang. We might need a new attribute for the resource handle. See llvm/wg-hlsl#76.
proposals/NNNN-vk-sampled-texture.md
Outdated
* Author(s): [Cassandra Beckley](https://github.com/cassiebeckley) | ||
* Sponsor: [Steven Perron](https://github.com/s-perron) and TBD | ||
* Status: **Under Consideration** | ||
* Required Version: HLSL 202x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per our discussion:
Marking the attribute that you want to remove deprecated in HLSL 2021, then remove it in HLSL 202x seems like a good path forward.
For the new types, we can use a __has_feature
check in the preprocessor and make it available in all language modes.
This proposal adds a set of
vk::SampledTexture*
types to represent SPIR-V's sampled image types. The intent is to replace and deprecate the[[vk::combinedImageSampler]]
annotation.I have created this with the extension template with the intent of using the fast-track process, as this is a platform-specific feature that is already supported by all Vulkan hardware and drivers, and it does not change any existing language behavior.