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

[HLSL] vector<->array conversions are allowed as inout parameters if explicitly casted #131938

Open
spall opened this issue Mar 18, 2025 · 0 comments
Labels
HLSL HLSL Language Support

Comments

@spall
Copy link
Contributor

spall commented Mar 18, 2025

This is allowed in DXC:
vector<->array conversions where we can create a cxvalue, but only from an explicit cast:
https://godbolt.org/z/ezzjj6dWo
but in clang produces the following error
cannot bind non-lvalue argument (float4)V to inout paramemter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HLSL HLSL Language Support
Projects
Status: Designing
Development

No branches or pull requests

2 participants