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

Conversion and handling for vector<T,1> #319

Open
llvm-beanz opened this issue Sep 16, 2024 · 0 comments
Open

Conversion and handling for vector<T,1> #319

llvm-beanz opened this issue Sep 16, 2024 · 0 comments
Labels
language-spec Issue with completed spec
Milestone

Comments

@llvm-beanz
Copy link
Collaborator

Which document does this relate to?
Language Spec

Describe the issue you see with the spec
There are a few problems that have come up during discussion of #311, and the corresponding implementation. DXC has some slightly odd handling of single-element vectors which it would be nice to rectify.

Additional context
Tex suggested trying to make vector<T,1> just an alias of the scalar type T. That will likely break some existing code, but might make things a lot cleaner. The conversion rules would then need to be updated to ensure that we always truncate to scalar instead of vector<T,1>.

@damyanp damyanp added this to the HLSL 202x milestone Sep 18, 2024
@damyanp damyanp added language-spec Issue with completed spec and removed needs-triage labels Sep 18, 2024
@damyanp damyanp moved this to Triaged in HLSL Triage Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language-spec Issue with completed spec
Projects
Status: Triaged
Development

No branches or pull requests

2 participants