Skip to content

Commit 0be2bc0

Browse files
committed
Fix Code that was removed while merging
1 parent 7d17093 commit 0be2bc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/nbl/scene/ICullingLoDSelectionSystem.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ class ICullingLoDSelectionSystem : public virtual core::IReferenceCounted
474474
};
475475
auto overrideShader = [device,&cwdForShaderCompilation,workgroupSize,_scanner](shader_source_and_path&& baseShader, std::string additionalCode)
476476
{
477+
additionalCode = "\n#define _NBL_GLSL_CULLING_LOD_SELECTION_CULL_WORKGROUP_SIZE_ "+std::to_string(workgroupSize)+"\n"+
478+
"\n#define _NBL_GLSL_CULLING_LOD_SELECTION_SCAN_WORKGROUP_SIZE_ "+std::to_string(_scanner->getWorkgroupSize())+"\n"+
479+
additionalCode;
477480
auto& path = baseShader.second;
478481
path = cwdForShaderCompilation / path.filename();
479482
baseShader.first->setFilePathHint(path.string());

0 commit comments

Comments
 (0)