style: fix clang-format issues
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
light7734 2025-07-15 16:31:46 +03:30
parent 8b3990959b
commit 5d1862f493
Signed by: light7734
GPG key ID: 8C30176798F1A6BA
6 changed files with 9 additions and 8 deletions

View file

@ -131,7 +131,8 @@ public:
return "TextLoader"; return "TextLoader";
} }
[[nodiscard]] auto load(const std::filesystem::path& file_path) const -> Assets::TextAsset::PackageData [[nodiscard]] auto load(const std::filesystem::path &file_path) const
-> Assets::TextAsset::PackageData
{ {
auto stream = std::ifstream { file_path, std::ios::binary }; auto stream = std::ifstream { file_path, std::ios::binary };
if (!stream.good()) if (!stream.good())

View file

@ -25,8 +25,8 @@ public:
}; };
static auto create( static auto create(
const Ref<Assets::TextAsset>& vertex_asset, const Ref<Assets::TextAsset> &vertex_asset,
const Ref<Assets::TextAsset>& pixel_asset, const Ref<Assets::TextAsset> &pixel_asset,
const Ref<SharedContext> &shared_context const Ref<SharedContext> &shared_context
) -> Ref<Shader>; ) -> Ref<Shader>;

View file

@ -14,7 +14,7 @@ class Texture
{ {
public: public:
static Ref<Texture> create( static Ref<Texture> create(
const Ref<Assets::TextureAsset>& asset, const Ref<Assets::TextureAsset> &asset,
const Ref<SharedContext> &shared_context const Ref<SharedContext> &shared_context
); );

View file

@ -20,7 +20,7 @@ Renderer *Renderer::s_context = nullptr;
Renderer::Renderer( Renderer::Renderer(
GLFWwindow *window_handle, GLFWwindow *window_handle,
const Ref<SharedContext>& shared_context, const Ref<SharedContext> &shared_context,
CreateInfo create_info CreateInfo create_info
) )
: m_quad_renderer( : m_quad_renderer(

View file

@ -12,8 +12,8 @@
namespace lt { namespace lt {
/* static */ auto Shader::create( /* static */ auto Shader::create(
const Ref<Assets::TextAsset>& vertex_asset, const Ref<Assets::TextAsset> &vertex_asset,
const Ref<Assets::TextAsset>& pixel_asset, const Ref<Assets::TextAsset> &pixel_asset,
const Ref<SharedContext> &shared_context const Ref<SharedContext> &shared_context
) -> Ref<Shader> ) -> Ref<Shader>
{ {

View file

@ -12,7 +12,7 @@
namespace lt { namespace lt {
/* static */ auto Texture::create( /* static */ auto Texture::create(
const Ref<Assets::TextureAsset>& asset, const Ref<Assets::TextureAsset> &asset,
const Ref<SharedContext> & /*shared_context*/ const Ref<SharedContext> & /*shared_context*/
) -> Ref<Texture> ) -> Ref<Texture>
{ {