mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-14 19:24:57 +00:00
Merge pull request #2336 from ReinUsesLisp/txq
gl_shader_decompiler: Fix TXQ types
This commit is contained in:
commit
f7d6e08688
1 changed files with 3 additions and 2 deletions
|
@ -1196,11 +1196,12 @@ private:
|
||||||
switch (meta->element) {
|
switch (meta->element) {
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
return "textureSize(" + sampler + ", " + lod + ')' + GetSwizzle(meta->element);
|
return "itof(int(textureSize(" + sampler + ", " + lod + ')' +
|
||||||
|
GetSwizzle(meta->element) + "))";
|
||||||
case 2:
|
case 2:
|
||||||
return "0";
|
return "0";
|
||||||
case 3:
|
case 3:
|
||||||
return "textureQueryLevels(" + sampler + ')';
|
return "itof(textureQueryLevels(" + sampler + "))";
|
||||||
}
|
}
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
return "0";
|
return "0";
|
||||||
|
|
Loading…
Reference in a new issue