mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Correct explicit lod's 0
It needs to be a float, not an int.
This commit is contained in:
parent
16b04512cb
commit
a922088c1c
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue