3
0
Fork 0
forked from suyu/suyu

Merge pull request #2336 from ReinUsesLisp/txq

gl_shader_decompiler: Fix TXQ types
This commit is contained in:
bunnei 2019-04-04 22:36:19 -04:00 committed by GitHub
commit f7d6e08688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";