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 19, 2023
1 parent 33a7e10 commit 98bf99a
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 328 deletions.
Loading

0 comments on commit 98bf99a

Please sign in to comment.