style: fix clang-format issues
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		
							parent
							
								
									8b3990959b
								
							
						
					
					
						commit
						5d1862f493
					
				
					 6 changed files with 9 additions and 8 deletions
				
			
		| 
						 | 
					@ -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())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
	);
 | 
						);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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>
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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>
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue