Skip to content

Commit 0cc3a18

Browse files
Update ISPIRVOptimizer.h
spans always need to be const
1 parent 9ec93a9 commit 0cc3a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/asset/utils/ISPIRVOptimizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ISPIRVOptimizer final : public core::IReferenceCounted
3939
EOP_COUNT
4040
};
4141

42-
ISPIRVOptimizer(std::span<E_OPTIMIZER_PASS> _passes) : m_passes(_passes.begin(), _passes.end()) {}
42+
ISPIRVOptimizer(std::span<const E_OPTIMIZER_PASS> _passes) : m_passes(_passes.begin(), _passes.end()) {}
4343

4444
core::smart_refctd_ptr<ICPUBuffer> optimize(const uint32_t* _spirv, uint32_t _dwordCount, system::logger_opt_ptr logger) const;
4545
core::smart_refctd_ptr<ICPUBuffer> optimize(const ICPUBuffer* _spirv, system::logger_opt_ptr logger) const;
@@ -51,4 +51,4 @@ class ISPIRVOptimizer final : public core::IReferenceCounted
5151

5252
}
5353

54-
#endif
54+
#endif

0 commit comments

Comments
 (0)