Skip to content

Commit 531350d

Browse files
committed
Merge branch 'erfan_vulkan_as' of https://github.com/Devsh-Graphics-Programming/Nabla into erfan_vulkan_as
2 parents 29f120c + 0be2bc0 commit 531350d

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)