Implementing the wrapper class for a command buffer
This section implements the wrapper class for a command buffer called CommandBufferMgr
. This class contains static functions that can be directly used like utility functions without requiring a class object. The class is implemented in a new file called wrapper.h/.cpp
; this file will contain multiple utility methods.
Most of the implemented functions in this class are provided with a default implementation. This means that each function provides the user with the flexibility to change the control structure parameters from outside the function call and send them as parametric arguments. The function arguments are inherent defaults, so if you are not specifying anything custom, the function will do all the jobs for you.
The following is the header implementation of the CommandBufferMgr
class. It declares four static functions that are responsible for allocating memory, recording the command buffer, and submitting the command buffer to the command...