summaryrefslogtreecommitdiff
path: root/src/new_render/pbr.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 14:33:34 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 14:33:34 +1000
commit82515f9d90ac149984013f0d64c1cab37b349b29 (patch)
tree6da445874d055e3e66ab1825d4aa3bb784955fc9 /src/new_render/pbr.h
parent5359c011a08ef2e06ed54104cc16c32868ca88ff (diff)
chore clang format + tidy
Diffstat (limited to 'src/new_render/pbr.h')
-rw-r--r--src/new_render/pbr.h28
1 files changed, 11 insertions, 17 deletions
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