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
The following program is accepted by fxc.exe :
( http://shader-playground.timjones.io/a7903c733ae2ef2ef279ebbb62bcb539 )
Texture2D myTexture; SamplerState mySampler; float4 main() : SV_Target0 { return myTexture.SampleBias(mySampler, float2(0, 0), 0, 0); }
However, it is rejected by glslangValidator:
$ glslangValidator -V100 --spirv-val -S frag -D --target-env vulkan1.0 input.frag.hlsl -e main /tmp/input.frag.hlsl error: SPIRV-Tools Validation Errors error: Expected Image Operand Bias to be float scalar %40 = OpImageSampleImplicitLod %v4float %39 %23 Bias|ConstOffset %27 %float_0
The text was updated successfully, but these errors were encountered:
Fix SPIR-V for SampleBias
8b87b84
Fixes KhronosGroup#2757
Successfully merging a pull request may close this issue.
The following program is accepted by fxc.exe :
( http://shader-playground.timjones.io/a7903c733ae2ef2ef279ebbb62bcb539 )
However, it is rejected by glslangValidator:
The text was updated successfully, but these errors were encountered: