Browse Source

Fix Shader:send with storage buffers.

Sasha Szpakowski 1 year ago
parent
commit
52f33041a5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/modules/graphics/Shader.cpp

+ 3 - 0
src/modules/graphics/Shader.cpp

@@ -1237,6 +1237,9 @@ bool Shader::validateInternal(StrongRef<ShaderStage> stages[], std::string &err,
 			UniformInfo u = {};
 			UniformInfo u = {};
 			u.name = canonicaliizeUniformName(info.name);
 			u.name = canonicaliizeUniformName(info.name);
 			u.location = -1;
 			u.location = -1;
+			u.stageMask = getStageMask(info.stages);
+			u.components = 1;
+			u.baseType = UNIFORM_STORAGEBUFFER;
 
 
 			if (type->isSizedArray())
 			if (type->isSizedArray())
 				u.count = type->getArraySizes()->getCumulativeSize();
 				u.count = type->getArraySizes()->getCumulativeSize();