-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from scallyw4g/jesse/perf/tuning-renderer-text…
…ure-sizes Jesse/perf/tuning renderer texture sizes
- Loading branch information
Showing
26 changed files
with
339 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule bonsai_stdlib
updated
3 files
+18 −0 | shaders/header.glsl | |
+5 −5 | src/gl.h | |
+72 −65 | src/shader.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
generated/do_editor_ui_for_compound_type_g_buffer_render_group.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
// src/engine/editor.cpp:404:0 | ||
|
||
link_internal void | ||
DoEditorUi(renderer_2d *Ui, window_layout *Window, g_buffer_render_group *Element, cs Name, ui_render_params *Params = &DefaultUiRenderParams_Generic) | ||
{ | ||
if (Element) | ||
{ | ||
// NOTE(Jesse): This is wacky as fuck, but it's a pretty easy way to | ||
// support not drawing the toggl-y thing if we just want to dump the members. | ||
b32 DrawChildren = True; | ||
b32 DidToggle = False; | ||
if (Name.Count) | ||
{ | ||
if (ToggleButton(Ui, FSz("v %S", Name), FSz("> %S", Name), UiId(Window, "toggle g_buffer_render_group", Element), &DefaultUiRenderParams_Generic)) | ||
{ | ||
DidToggle = True; | ||
PushNewRow(Ui); | ||
} | ||
else | ||
{ | ||
DrawChildren = False; | ||
} | ||
} | ||
|
||
if (DrawChildren) | ||
{ | ||
PushTableStart(Ui); | ||
if (DidToggle) { OPEN_INDENT_FOR_TOGGLEABLE_REGION(); } | ||
DoEditorUi(Ui, | ||
Window, | ||
&Element->FBO, | ||
CSz("FBO"), | ||
Params | ||
); | ||
|
||
|
||
|
||
|
||
|
||
|
||
DoEditorUi(Ui, | ||
Window, | ||
&Element->Textures, | ||
CSz("Textures"), | ||
Params | ||
); | ||
|
||
|
||
|
||
|
||
|
||
|
||
DoEditorUi(Ui, | ||
Window, | ||
&Element->gBufferShader, | ||
CSz("gBufferShader"), | ||
Params | ||
); | ||
|
||
|
||
|
||
|
||
|
||
|
||
DoEditorUi(Ui, | ||
Window, | ||
&Element->InverseViewMatrix, | ||
CSz("InverseViewMatrix"), | ||
Params | ||
); | ||
|
||
|
||
|
||
|
||
|
||
|
||
DoEditorUi(Ui, | ||
Window, | ||
&Element->InverseProjectionMatrix, | ||
CSz("InverseProjectionMatrix"), | ||
Params | ||
); | ||
|
||
|
||
|
||
|
||
|
||
|
||
DoEditorUi(Ui, | ||
Window, | ||
&Element->ViewProjection, | ||
CSz("ViewProjection"), | ||
Params | ||
); | ||
if (DidToggle) { CLOSE_INDENT_FOR_TOGGLEABLE_REGION(); } | ||
PushTableEnd(Ui); | ||
} | ||
else | ||
{ | ||
PushNewRow(Ui); | ||
} | ||
|
||
} | ||
else | ||
{ | ||
PushColumn(Ui, Name, Params); | ||
PushColumn(Ui, CSz("(null)"), Params); | ||
PushNewRow(Ui); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.