formatting

This commit is contained in:
jacob 2025-08-11 04:29:40 -05:00
parent 1d569d293c
commit f7b450d6be

View File

@ -2113,8 +2113,8 @@ void UpdateUser(P_Window *window)
text.len += PushString(temp.arena, Lit("\n")).len; text.len += PushString(temp.arena, Lit("\n")).len;
text.len += StringFormat(temp.arena, Lit("Debug steps: %F"), FmtUint(GetGstat(GSTAT_DEBUG_STEPS))).len; text.len += StringFormat(temp.arena, Lit("Debug steps: %F"), FmtUint(GetGstat(GSTAT_DEBUG_STEPS))).len;
//text.len += PushString(temp.arena, Lit("\n")).len; //text.len += PushString(temp.arena, Lit("\n")).len;
#endif
#endif
//draw_text(g->render_sig, font, pos, StringFormat(temp.arena, Lit("blended world entities: %F/%F"), FmtUint(g->ss_blended->num_ents_allocated), FmtUint(g->ss_blended->num_ents_reserved))); //draw_text(g->render_sig, font, pos, StringFormat(temp.arena, Lit("blended world entities: %F/%F"), FmtUint(g->ss_blended->num_ents_allocated), FmtUint(g->ss_blended->num_ents_reserved)));
//draw_text(g->render_sig, font, pos, text); //draw_text(g->render_sig, font, pos, text);
@ -2147,6 +2147,7 @@ void UpdateUser(P_Window *window)
__profn("Render"); __profn("Render");
Rect ui_viewport = RectFromVec2(VEC2(0, 0), VEC2(g->ui_size.x, g->ui_size.y)); Rect ui_viewport = RectFromVec2(VEC2(0, 0), VEC2(g->ui_size.x, g->ui_size.y));
Rect render_viewport = RectFromVec2(VEC2(0, 0), VEC2(g->render_size.x, g->render_size.y)); Rect render_viewport = RectFromVec2(VEC2(0, 0), VEC2(g->render_size.x, g->render_size.y));
/* Acquire gbuffers */ /* Acquire gbuffers */
if (g->shade_target && !EqVec2I32(g->render_size, GT_GetTextureSize(g->shade_target))) if (g->shade_target && !EqVec2I32(g->render_size, GT_GetTextureSize(g->shade_target)))
{ {
@ -2181,7 +2182,7 @@ void UpdateUser(P_Window *window)
g->ui_target = AcquireGbuffer(GT_Format_R8G8B8A8_Unorm, g->ui_size); g->ui_target = AcquireGbuffer(GT_Format_R8G8B8A8_Unorm, g->ui_size);
} }
/* Acquiretransfer buffers */ /* Acquire transfer buffers */
/* TODO: Make these static */ /* TODO: Make these static */
LocalPersist u16 quad_indices[6] = { 0, 1, 2, 0, 2, 3 }; LocalPersist u16 quad_indices[6] = { 0, 1, 2, 0, 2, 3 };
GT_Resource *quad_index_buffer = AcquireTransferBuffer(countof(quad_indices), sizeof(*quad_indices), quad_indices); GT_Resource *quad_index_buffer = AcquireTransferBuffer(countof(quad_indices), sizeof(*quad_indices), quad_indices);