Skip to content

Commit

Permalink
GLSLang: SSBOs in Mesh shaders dont have to be shared params
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Sep 3, 2024
1 parent acc64b7 commit 2cf95c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PlugIns/GLSLang/src/OgreGLSLang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ void GLSLangProgram::prepareImpl()
auto uboName = String(program.getUniformBlockName(blockIdx));
if(uboName != "OgreUniforms")
{
if(mType == GPT_MESH_PROGRAM || mType == GPT_TASK_PROGRAM)
continue; // SSBOs in mesh shaders are used for vertex buffers

GpuProgramManager::getSingleton().getSharedParameters(uboName);
// TODO: there is no public API to set the binding point and create the correct buffer yet
}
Expand Down

0 comments on commit 2cf95c5

Please sign in to comment.