Skip to content

Commit

Permalink
Ran clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Jan 4, 2024
1 parent 7135dbf commit 832db02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/vsg/maths/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ namespace vsg
template<typename T>
constexpr t_vec4<T> sRGB_to_linear(const t_vec4<T>& src)
{
const T exponent = 1.0/2.2;
const T exponent = 1.0 / 2.2;
return t_vec4<T>(std::pow(src.r, exponent), std::pow(src.g, exponent), std::pow(src.b, exponent), src.a);
}

template<typename T>
constexpr t_vec4<T> sRGB_to_linear(T r, T g, T b, T a)
{
const T exponent = 1.0/2.2;
const T exponent = 1.0 / 2.2;
return t_vec4<T>(std::pow(r, exponent), std::pow(g, exponent), std::pow(b, exponent), a);
}

Expand Down
2 changes: 1 addition & 1 deletion include/vsg/maths/vec4.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace vsg
value{in_x, in_y, in_z, in_w} {}

constexpr t_vec4(const VkClearColorValue& v) :
value{ static_cast<value_type>(v.float32[0]), static_cast<value_type>(v.float32[1]), static_cast<value_type>(v.float32[2]), static_cast<value_type>(v.float32[3])} {}
value{static_cast<value_type>(v.float32[0]), static_cast<value_type>(v.float32[1]), static_cast<value_type>(v.float32[2]), static_cast<value_type>(v.float32[3])} {}

template<typename R>
constexpr explicit t_vec4(const t_vec4<R>& v) :
Expand Down
4 changes: 2 additions & 2 deletions src/vsg/app/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#include <vsg/core/Version.h>
#include <vsg/io/Logger.h>
#include <vsg/io/Options.h>
#include <vsg/maths/color.h>
#include <vsg/maths/vec4.h>
#include <vsg/ui/ApplicationEvent.h>
#include <vsg/vk/SubmitCommands.h>
#include <vsg/maths/vec4.h>
#include <vsg/maths/color.h>

#include <array>
#include <chrono>
Expand Down

0 comments on commit 832db02

Please sign in to comment.