Kaynağa Gözat

Strip flags from UniformType before calling getUniformTypeName() (#2635)

Christophe Dehais 4 yıl önce
ebeveyn
işleme
89c8e61abd

+ 1 - 1
tools/shaderc/shaderc_hlsl.cpp

@@ -753,7 +753,7 @@ namespace bgfx { namespace hlsl
 
 				BX_TRACE("%s, %s, %d, %d, %d"
 					, un.name.c_str()
-					, getUniformTypeName(un.type)
+					, getUniformTypeName(UniformType::Enum(un.type & ~kUniformMask))
 					, un.num
 					, un.regIndex
 					, un.regCount

+ 1 - 1
tools/shaderc/shaderc_spirv.cpp

@@ -355,7 +355,7 @@ namespace bgfx { namespace spirv
 
 			BX_TRACE("%s, %s, %d, %d, %d"
 				, un.name.c_str()
-				, getUniformTypeName(un.type)
+				, getUniformTypeName(UniformType::Enum(un.type & ~kUniformMask))
 				, un.num
 				, un.regIndex
 				, un.regCount