Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Style fixes #28

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions App/Src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ namespace
return ret;
}

void Run(const fs::path& assets_path)
void Run(const fs::path& assetsPath)
{
static constexpr Tkge::WindowSurface surface{.size = {1280, 720}};
Tkge::Engine engine{surface};

auto shader = Tkge::Graphics::Shader{};
const auto vertexSpirV = LoadSpirV((assets_path / "Shaders/Default.vert").string().c_str());
const auto fragmentSpirV = LoadSpirV((assets_path / "Shaders/Default.frag").string().c_str());
const auto vertexSpirV = LoadSpirV((assetsPath / "Shaders/Default.vert").string().c_str());
const auto fragmentSpirV = LoadSpirV((assetsPath / "Shaders/Default.frag").string().c_str());
const auto& renderDevice = engine.RenderDevice();
if (!shader.Load(renderDevice.get_device(), vertexSpirV, fragmentSpirV)) { throw std::runtime_error{"Failed to load shaders"}; }

Expand Down
2 changes: 1 addition & 1 deletion Lib/Include/Tkge/Transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Tkge
[[nodiscard]] auto ToView() const -> glm::mat4;
[[nodiscard]] auto ToInverseView() const -> glm::mat4;

[[nodiscard]] static constexpr auto Accumulate(const Transform& a, const Transform& b) -> Transform
[[nodiscard]] static constexpr Transform Accumulate(const Transform& a, const Transform& b)
{
return Transform{
.position = a.position + b.position,
Expand Down