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
precise
Minimal example HLSL compute shader:
RWTexture2D<float4> res; precise float MakePrecise(in precise float v) { precise float pv = v; return pv; } [numthreads(8, 8, 4)] void Main (uint3 dtid : SV_DispatchThreadID) { res[dtid.xy] = float4(MakePrecise(1), 0, 0, 1); }
Crashes with the error
precise float MakePrecise(in precise float v) { ^ Expecting: Type qualifier or ';'
Removing the precise modifier from the return type causes the shader to parse correctly e.g. this works as expected
RWTexture2D<float4> res; float MakePrecise(in precise float v) { precise float pv = v; return pv; } [numthreads(8, 8, 4)] void Main (uint3 dtid : SV_DispatchThreadID) { res[dtid.xy] = float4(MakePrecise(1), 0, 0, 1); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Minimal example HLSL compute shader:
Crashes with the error
Removing the
precise
modifier from the return type causes the shader to parse correctly e.g. this works as expectedThe text was updated successfully, but these errors were encountered: