We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 allows implicit truncation of vector types, but DXC warns about it. Clang needs to learn this warning.
// RUN: %dxc -T cs_6_5 -verify StructuredBuffer<int4> In : register(t0); RWStructuredBuffer<int> Out : register(u0); [numthreads(4,2,1)] void main(uint GI : SV_GroupIndex) { Out[GI] = In[GI]; // expected-warning{{implicit truncation of vector type}} }
See https://hlsl.godbolt.org/z/o7j6d7r88
The text was updated successfully, but these errors were encountered:
Isn't this just because -Wconversion isn't enabled by default? With -Wconversion:
-Wconversion
<source>:7:13: warning: implicit conversion turns vector to scalar: 'vector<int, 4>' (vector of 4 'int' values) to 'int' [-Wconversion] 7 | Out[GI] = In[GI]; | ~ ^~~~~~
Sorry, something went wrong.
No branches or pull requests
HLSL allows implicit truncation of vector types, but DXC warns about it. Clang needs to learn this warning.
See https://hlsl.godbolt.org/z/o7j6d7r88
The text was updated successfully, but these errors were encountered: