From 2cf95c57a35471f1e77c99c890ab8c9d74da8652 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Tue, 13 Aug 2024 22:34:09 +0200 Subject: [PATCH] GLSLang: SSBOs in Mesh shaders dont have to be shared params --- PlugIns/GLSLang/src/OgreGLSLang.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlugIns/GLSLang/src/OgreGLSLang.cpp b/PlugIns/GLSLang/src/OgreGLSLang.cpp index 157f500963f..16d09cfc4c4 100644 --- a/PlugIns/GLSLang/src/OgreGLSLang.cpp +++ b/PlugIns/GLSLang/src/OgreGLSLang.cpp @@ -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 }