-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Cherry-pick misc cleanups from last-frame-visibility - Smarter multibind logic - Make offsets in IndirectBuffers dependent on BufferBindings - Organize buffer bindings based on where they're used to allow each pass to bind exactly which buffers it needs - Use DSA for the depth pyramid - Pass the map of util programs to IndirectPrograms rather than unpacking them individually - Actually delete all the indirect utils
- Loading branch information
Showing
8 changed files
with
76 additions
and
77 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
7 changes: 4 additions & 3 deletions
7
common/src/backend/java/dev/engine_room/flywheel/backend/engine/indirect/BufferBindings.java
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
14 changes: 9 additions & 5 deletions
14
common/src/backend/resources/assets/flywheel/flywheel/internal/indirect/buffer_bindings.glsl
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#define _FLW_INSTANCE_BUFFER_BINDING 0 | ||
#define _FLW_TARGET_BUFFER_BINDING 1 | ||
#define _FLW_PAGE_FRAME_DESCRIPTOR_BUFFER_BINDING 2 | ||
#define _FLW_MODEL_BUFFER_BINDING 3 | ||
#define _FLW_DRAW_BUFFER_BINDING 4 | ||
// Per culling group | ||
#define _FLW_PAGE_FRAME_DESCRIPTOR_BUFFER_BINDING 0// cull | ||
#define _FLW_INSTANCE_BUFFER_BINDING 1// cull, draw | ||
#define _FLW_DRAW_INSTANCE_INDEX_BUFFER_BINDING 2// cull, draw | ||
#define _FLW_MODEL_BUFFER_BINDING 3// cull, apply | ||
#define _FLW_DRAW_BUFFER_BINDING 4// apply, draw | ||
|
||
// Global to the engine | ||
#define _FLW_LIGHT_LUT_BUFFER_BINDING 5 | ||
#define _FLW_LIGHT_SECTIONS_BUFFER_BINDING 6 | ||
|
||
#define _FLW_MATRIX_BUFFER_BINDING 7 |
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