Skip to content

Commit

Permalink
merian: shaderc compiler: clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Sep 13, 2024
1 parent acd8c6b commit 0312be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/merian/vk/shader/shader_compiler_shaderc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ shaderc_shader_kind_for_stage_flag_bit(const vk::ShaderStageFlagBits shader_kind
ShadercCompiler::ShadercCompiler(const std::vector<std::string>& include_paths,
const std::map<std::string, std::string>& 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<FileIncluder>();
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));
Expand Down

0 comments on commit 0312be3

Please sign in to comment.