diff --git a/src/merian/vk/shader/shader_compiler_shaderc.cpp b/src/merian/vk/shader/shader_compiler_shaderc.cpp index 9508b8cc..cc2ee607 100644 --- a/src/merian/vk/shader/shader_compiler_shaderc.cpp +++ b/src/merian/vk/shader/shader_compiler_shaderc.cpp @@ -107,12 +107,12 @@ shaderc_shader_kind_for_stage_flag_bit(const vk::ShaderStageFlagBits shader_kind ShadercCompiler::ShadercCompiler(const std::vector& include_paths, const std::map& macro_definitions) { - for (auto& [key, value] : macro_definitions) { + for (const auto& [key, value] : macro_definitions) { compile_options.AddMacroDefinition(key, value); } auto includer = std::make_unique(); - for (auto& include_path : include_paths) { + for (const auto& include_path : include_paths) { includer->get_file_loader().add_search_path(include_path); } compile_options.SetIncluder(std::move(includer));