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

bit_cast template #318

Open
llvm-beanz opened this issue Sep 12, 2024 · 1 comment
Open

bit_cast template #318

llvm-beanz opened this issue Sep 12, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@llvm-beanz
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
HLSL has a bunch of different casting builtins that are all spelled differently and not templated. That makes it difficult for template code to cast to the appropriate type if the type is a template parameter.

Describe the solution you'd like
It would be awesome to add a templated bit_cast operation. Such a casting operation was added as an implementation detail in:

llvm/llvm-project#107292

I suspect we could create a similar header-implemented interface for DXC as well using type traits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Triaged
Development

No branches or pull requests

3 participants