Skip to content

Commit

Permalink
Add assertions for graphics command buffer allocation
Browse files Browse the repository at this point in the history
When memory for a command or data in the command buffer cannot be allocated in `CGraphics_Threaded::AddCmd` and `CGraphics_Threaded::AllocCommandBufferData` the command buffer is cleared so it should always be possible to allocated memory successfully on the second try. Therefore assertions are added and the return values and inconsistent checks of the functions are removed.

The usage of `AddCmd` is simplified by automatically deriving an error message based on the type of the template parameter.
  • Loading branch information
Robyt3 committed Jul 20, 2023
1 parent 8986f15 commit 935fdbe
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 329 deletions.
Loading

0 comments on commit 935fdbe

Please sign in to comment.