Vireo  0.0
Vireo 3D Rendering Hardware Interface
CommandAllocator Class Referenceabstract

Detailed Description

a command allocator (pool) object

Manual page : Command Lists

Public Member Functions

virtual void reset () const = 0
 
virtual std::shared_ptr< CommandListcreateCommandList (const Pipeline &pipeline) const = 0
 
std::shared_ptr< CommandListcreateCommandList (const std::shared_ptr< const Pipeline > &pipeline) const
 
virtual std::shared_ptr< CommandListcreateCommandList () const = 0
 
auto getCommandListType () const
 
virtual ~CommandAllocator () = default
 
 CommandAllocator (CommandAllocator &) = delete
 
CommandAllocator & operator= (const CommandAllocator &) = delete
 

Protected Member Functions

 CommandAllocator (const CommandType type)
 

Constructor & Destructor Documentation

virtual ~CommandAllocator ( )
virtualdefault
CommandAllocator ( CommandAllocator &  )
delete
CommandAllocator ( const CommandType  type)
inlineprotected

Member Function Documentation

virtual std::shared_ptr<CommandList> createCommandList ( ) const
pure virtual

Returns a new command lists

virtual std::shared_ptr<CommandList> createCommandList ( const Pipeline pipeline) const
pure virtual

Returns a new graphic command list

Parameters
pipelineAssociated pipeline
std::shared_ptr<CommandList> createCommandList ( const std::shared_ptr< const Pipeline > &  pipeline) const
inline

Returns a new graphic command list

Parameters
pipelineAssociated pipeline
auto getCommandListType ( ) const
inline

Returns the type of command list created by this allocator

CommandAllocator& operator= ( const CommandAllocator &  )
delete
virtual void reset ( ) const
pure virtual

Resets the command allocator and of the associated command lists