Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cassiebeckley
Copy link
Contributor

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.

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.
Copy link
Collaborator

@s-perron s-perron left a 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 Show resolved Hide resolved
@s-perron s-perron self-requested a review November 4, 2024 14:50
@s-perron s-perron requested a review from llvm-beanz November 4, 2024 14:50
* 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
Copy link
Collaborator

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.

@llvm-beanz llvm-beanz added the Design Meeting Agenda item for the design meeting label Nov 12, 2024
@s-perron s-perron requested a review from llvm-beanz November 18, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Meeting Agenda item for the design meeting
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants