Skip to content

Commit

Permalink
Fix Shader:send with storage buffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Mar 8, 2024
1 parent 5f3b957 commit 52f3304
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/graphics/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 52f3304

Please sign in to comment.