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
WGSL:
@group(0) @binding(1) var<storage, read_write> s_output: u32; var<private> global1: array<u32, 2> = array<u32, 2>(1u, 2u); @compute @workgroup_size(1) fn main() { s_output = global1[0]; }
HLSL:
uint Constructarray2_uint_(uint arg0, uint arg1)[2] { uint ret[2] = { arg0, arg1 }; return ret; } RWByteAddressBuffer s_output : register(u1); static uint global1_[2] = Constructarray2_uint_(1u, 2u); [numthreads(1, 1, 1)] void main() { uint _expr4 = global1_[0]; s_output.Store(0, asuint(_expr4)); return; }
HLSL compiler error:
D:\local\Temp\98929c1d-4490-4b2e-a958-cccfa42228a4.hlsl(2,38): error X3000: syntax error: unexpected token '['
The text was updated successfully, but these errors were encountered:
I've noticed this a few hours ago and am already fixing it. The issue was that the array return syntax only works with DXC (not FXC).
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
WGSL:
HLSL:
HLSL compiler error:
The text was updated successfully, but these errors were encountered: