mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix Shader:send with storage buffers.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user