Fix Shader:send with storage buffers.

This commit is contained in:
Sasha Szpakowski
2024-03-08 17:52:21 -04:00
parent 5f3b9574b8
commit 52f33041a5
+3
View File
@@ -1237,6 +1237,9 @@ bool Shader::validateInternal(StrongRef<ShaderStage> stages[], std::string &err,
UniformInfo u = {};
u.name = canonicaliizeUniformName(info.name);
u.location = -1;
u.stageMask = getStageMask(info.stages);
u.components = 1;
u.baseType = UNIFORM_STORAGEBUFFER;
if (type->isSizedArray())
u.count = type->getArraySizes()->getCumulativeSize();