[qfcc] Correct explicit lod's 0

It needs to be a float, not an int.
This commit is contained in:
Bill Currie 2025-01-20 11:42:25 +09:00
parent 16b04512cb
commit a922088c1c

View file

@ -849,17 +849,17 @@ SRC_LINE
" gsamplerCAS=[__sampler(,Cube,,Array,Shadow)]) {" "\n"
"gvec4 texture(gsampler sampler, gtex_coord P)" "\n"
"= " SPV(OpImageSampleExplicitLod) "\n"
"[sampler, P, =ImageOperands.Lod, 0];" "\n"
"[sampler, P, =ImageOperands.Lod, 0f];" "\n"
"float texture(gsamplerSh sampler, gshadow_coord P)" "\n"
"= " SPV(OpImageSampleDrefExplicitLod) "\n"
"[sampler, [gsamplerSh shadow_coord(P)], [gsamplerSh comp(P)]," "\n"
" =ImageOperands.Lod, 0];" "\n"
" =ImageOperands.Lod, 0f];" "\n"
"float texture(gsamplerCAS sampler, vec4 P, float comp)" "\n"
"= " SPV(OpImageSampleDrefExplicitLod) "[sampler, P, comp," "\n"
" =ImageOperands.Lod, 0];" "\n"
" =ImageOperands.Lod, 0f];" "\n"
"gvec4 textureProj(gsampler sampler, gproj_coord P)" "\n"
"= " SPV(OpImageSampleProjExplicitLod) "\n"
"[sampler, P, =ImageOperands.Lod, 0];" "\n"
"[sampler, P, =ImageOperands.Lod, 0f];" "\n"
"};" "\n"
"#undef __sampler" "\n"
"#undef _sampler" "\n"