Skip to content

finite_render_submit_frame

The finite_render_submit_frame function submits a frame to the Vulkan graphics queue using a FiniteRenderSubmitInfo structure and optionally uses a fence for synchronization.

bool finite_render_submit_frame(FiniteRender *render, FiniteRenderSubmitInfo *info, uint32_t fenceId, bool safeExit);
TypeDescription
const char *fileSource file name for logging purposes.
const char *funcFunction name for logging purposes.
int lineLine number for logging purposes.
FiniteRender *renderPointer to the FiniteRender instance.
FiniteRenderSubmitInfo *infoPointer to the submission info defining semaphores and command buffers.
uint32_t fenceIdIndex of the fence to signal after submission, or -1 for no fence.
bool safeExitIf true, will clean up and exit the program on critical errors.

fenceId should be used to synchronize GPU operations

safeExit should be true to force the program to terminate on submission failure.