Browse Source

shaderc_glsl: parse int samplers like float samplers (#2341)

Sandy 5 years ago
parent
commit
6072d4eda0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tools/shaderc/shaderc_glsl.cpp

+ 3 - 1
tools/shaderc/shaderc_glsl.cpp

@@ -168,7 +168,9 @@ namespace bgfx { namespace glsl
 
 					char uniformType[256];
 
-					if (0 == bx::strCmp(typen, "sampler", 7) )
+					if (0 == bx::strCmp(typen, "sampler", 7)
+					||  0 == bx::strCmp(typen, "isampler", 8)
+					||  0 == bx::strCmp(typen, "usampler", 8) )
 					{
 						bx::strCopy(uniformType, BX_COUNTOF(uniformType), "int");
 					}