Skip to content

Commit 02b001f

Browse files
committed
SPIRV-Header SPIRV-Tools SPIRV-Cross shaderc glslang Submodules Update
1 parent 834a3bb commit 02b001f

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

3rdparty/SPIRV-Tools

Submodule SPIRV-Tools updated 258 files

3rdparty/glslang

3rdparty/nbl_spirv_cross

Submodule nbl_spirv_cross updated 426 files

src/nbl/asset/utils/ISPIRVOptimizer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ nbl::core::smart_refctd_ptr<ICPUBuffer> ISPIRVOptimizer::optimize(const uint32_t
1919
return spvtools::CreateScalarReplacementPass();
2020
};
2121

22+
auto CreateReduceLoadSizePass = [] {
23+
return spvtools::CreateReduceLoadSizePass();
24+
};
25+
2226
using create_pass_f_t = spvtools::Optimizer::PassToken(*)();
2327
create_pass_f_t create_pass_f[EOP_COUNT]{
2428
&spvtools::CreateMergeReturnPass,
@@ -37,7 +41,7 @@ nbl::core::smart_refctd_ptr<ICPUBuffer> ISPIRVOptimizer::optimize(const uint32_t
3741
&spvtools::CreateRedundancyEliminationPass,
3842
&spvtools::CreateLoopInvariantCodeMotionPass,
3943
&spvtools::CreateCCPPass,
40-
&spvtools::CreateReduceLoadSizePass,
44+
CreateReduceLoadSizePass,
4145
&spvtools::CreateStrengthReductionPass,
4246
&spvtools::CreateIfConversionPass
4347
};

0 commit comments

Comments
 (0)