From 82515f9d90ac149984013f0d64c1cab37b349b29 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:33:34 +1000 Subject: chore clang format + tidy --- src/new_render/pbr.h | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'src/new_render/pbr.h') diff --git a/src/new_render/pbr.h b/src/new_render/pbr.h index f3bad4b..914975b 100644 --- a/src/new_render/pbr.h +++ b/src/new_render/pbr.h @@ -5,18 +5,18 @@ #pragma once #include "backend_opengl.h" -#include "defines.h" #include "camera.h" +#include "defines.h" #include "maths_types.h" #include "ral_types.h" #include "render_types.h" // --- Public API typedef struct PBR_Storage { - GPU_Renderpass* pbr_pass; - GPU_Pipeline* pbr_pipeline; + GPU_Renderpass* pbr_pass; + GPU_Pipeline* pbr_pipeline; -} PBR_Storage; // Stores all necessary data and handles +} PBR_Storage; // Stores all necessary data and handles typedef struct PBRMaterialUniforms { Material mat; @@ -25,12 +25,11 @@ typedef struct PBRMaterialUniforms { PUB void PBR_Init(PBR_Storage* storage); // NOTE: For simplicity's sake we will render this pass directly to the default framebuffer -PUB void PBR_Run( - PBR_Storage* storage - // light data - // camera - // geometry - // materials +PUB void PBR_Run(PBR_Storage* storage + // light data + // camera + // geometry + // materials ); typedef struct PBR_Params { @@ -57,12 +56,7 @@ GPU_Renderpass* PBR_RPassCreate(); GPU_Pipeline* PBR_PipelineCreate(GPU_Renderpass* rpass); -void PBR_Execute( - PBR_Storage* storage, - Camera camera, - TextureHandle shadowmap_tex, - RenderEnt* entities, - size_t entity_count -); +void PBR_Execute(PBR_Storage* storage, Camera camera, TextureHandle shadowmap_tex, + RenderEnt* entities, size_t entity_count); ShaderDataLayout PBRMaterial_GetLayout(void* data); \ No newline at end of file -- cgit v1.2.3-70-g09d2