summaryrefslogtreecommitdiff
path: root/src/new_render/render_frame.c
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/render_frame.c
parent5359c011a08ef2e06ed54104cc16c32868ca88ff (diff)
chore clang format + tidy
Diffstat (limited to 'src/new_render/render_frame.c')
-rw-r--r--src/new_render/render_frame.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/new_render/render_frame.c b/src/new_render/render_frame.c
index 2dc98b0..9a95259 100644
--- a/src/new_render/render_frame.c
+++ b/src/new_render/render_frame.c
@@ -6,14 +6,14 @@
#include "mem.h"
#include "render.h"
-
-Cull_Result Frame_Cull(Renderer* ren, RenderEnt *entities, size_t entity_count, Camera *camera) {
+Cull_Result Frame_Cull(Renderer* ren, RenderEnt* entities, size_t entity_count, Camera* camera) {
// TODO: u32 chunk_count = Tpool_GetNumWorkers();
arena* frame_arena = GetRenderFrameArena(ren);
- Cull_Result result = {0};
- result.visible_ent_indices = arena_alloc(frame_arena, sizeof(u32) * entity_count); // make space for if all ents are visible
+ Cull_Result result = { 0 };
+ result.visible_ent_indices = arena_alloc(
+ frame_arena, sizeof(u32) * entity_count); // make space for if all ents are visible
assert((result.n_visible_objects + result.n_culled_objects == entity_count));
return result;