diff options
| author | hachem <im@hachem.wtf> | 2026-08-20 02:12:52 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-20 02:25:57 +0200 |
| commit | 0f9483ce025b015b1197b7a7efc8ed983bedbb8e (patch) | |
| tree | 3984c728052cb21e88550248f3ff2fb2fece41a3 /src/rendering/texture.cpp | |
| parent | 0802ee19573e880e319a61ae814ee42c01e28cd3 (diff) | |
refactor: trailing return types in rendering
Diffstat (limited to 'src/rendering/texture.cpp')
| -rw-r--r-- | src/rendering/texture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rendering/texture.cpp b/src/rendering/texture.cpp index a33edd0..b36be1b 100644 --- a/src/rendering/texture.cpp +++ b/src/rendering/texture.cpp @@ -6,7 +6,7 @@ namespace Donut { - Ref<Texture2D> Texture2D::create(uint32_t width, uint32_t height) + auto Texture2D::create(uint32_t width, uint32_t height) -> Ref<Texture2D> { switch (Renderer::get_api()) { @@ -21,7 +21,7 @@ namespace Donut } } - Ref<Texture2D> Texture2D::create(const std::string& path) + auto Texture2D::create(const std::string& path) -> Ref<Texture2D> { switch (Renderer::get_api()) { @@ -36,7 +36,7 @@ namespace Donut } } - Ref<CubemapTexture> CubemapTexture::create(uint32_t width, uint32_t height) + auto CubemapTexture::create(uint32_t width, uint32_t height) -> Ref<CubemapTexture> { switch (Renderer::get_api()) { @@ -51,7 +51,7 @@ namespace Donut } } - Ref<CubemapTexture> CubemapTexture::create_from_hdri(const std::string& path) + auto CubemapTexture::create_from_hdri(const std::string& path) -> Ref<CubemapTexture> { switch (Renderer::get_api()) { |
