notes about structure

This commit is contained in:
2024-07-09 22:30:55 -04:00
parent 2bb3b71b2b
commit 4e2cf3eb3b
2 changed files with 8 additions and 1 deletions

View File

@@ -92,6 +92,11 @@ pub fn frame() !void {
for (present_callbacks.items) |cb| {
cb(cmd);
}
// todo really don't like this.
// there should be some comptime means for a module to invoke hooks on other modules. eg there should be some
// "record" hook that for each module that gets called here; but if the render module is never added then that
// hook never gets called
target.end_rendering(cmd);
try cmd.endCommandBuffer();