瀏覽代碼

shaderc: Initialize uniform.

Бранимир Караџић 5 年之前
父節點
當前提交
eec559cc55
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      tools/shaderc/shaderc.h

+ 10 - 0
tools/shaderc/shaderc.h

@@ -118,6 +118,16 @@ namespace bgfx
 
 
 	struct Uniform
 	struct Uniform
 	{
 	{
+		Uniform()
+			: type(UniformType::Count)
+			, num(0)
+			, regIndex(0)
+			, regCount(0)
+			, texComponent(0)
+			, texDimension(0)
+		{
+		}
+
 		std::string name;
 		std::string name;
 		UniformType::Enum type;
 		UniformType::Enum type;
 		uint8_t num;
 		uint8_t num;