Skip to content

Commit

Permalink
merian: ShaderModule: clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Nov 7, 2024
1 parent 2ec53b2 commit 1f99c59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/merian/vk/shader/shader_module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ShaderModule : public std::enable_shared_from_this<ShaderModule> {
operator ShaderStageCreateInfo();

ShaderStageCreateInfo get_shader_stage_create_info(
const SpecializationInfoHandle specialization_info = MERIAN_SPECIALIZATION_INFO_NONE,
const SpecializationInfoHandle& specialization_info = MERIAN_SPECIALIZATION_INFO_NONE,
const char* entry_point = "main",
const vk::PipelineShaderStageCreateFlags flags = {});

Expand All @@ -72,7 +72,7 @@ class ShaderStageCreateInfo {
ShaderStageCreateInfo(
const ShaderModuleHandle& shader_module,
const SpecializationInfoHandle& specialization_info = MERIAN_SPECIALIZATION_INFO_NONE,
const std::string entry_point = "main",
const std::string& entry_point = "main",
const vk::PipelineShaderStageCreateFlags flags = {});

operator vk::PipelineShaderStageCreateInfo() const;
Expand Down
4 changes: 2 additions & 2 deletions src/merian/vk/shader/shader_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ShaderModule::operator ShaderStageCreateInfo() {
}

ShaderStageCreateInfo
ShaderModule::get_shader_stage_create_info(const SpecializationInfoHandle specialization_info,
ShaderModule::get_shader_stage_create_info(const SpecializationInfoHandle& specialization_info,
const char* entry_point,
const vk::PipelineShaderStageCreateFlags flags) {
return ShaderStageCreateInfo(shared_from_this(), specialization_info, entry_point, flags);
Expand All @@ -71,7 +71,7 @@ ShaderModuleHandle ShaderModule::fullscreen_triangle(const ContextHandle& contex

ShaderStageCreateInfo::ShaderStageCreateInfo(const ShaderModuleHandle& shader_module,
const SpecializationInfoHandle& specialization_info,
const std::string entry_point,
const std::string& entry_point,
const vk::PipelineShaderStageCreateFlags flags)
: shader_module(shader_module), specialization_info(specialization_info),
entry_point(entry_point), flags(flags) {}
Expand Down

0 comments on commit 1f99c59

Please sign in to comment.