Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
talvos::Command Class Referenceabstract

This class is a base class for all commands. More...

#include <talvos/Commands.h>

Inheritance diagram for talvos::Command:
talvos::BeginRenderPassCommand talvos::BlitImageCommand talvos::ClearAttachmentCommand talvos::ClearColorImageCommand talvos::CopyBufferCommand talvos::CopyBufferToImageCommand talvos::CopyImageCommand talvos::CopyImageToBufferCommand talvos::DispatchCommand talvos::DrawCommandBase talvos::EndRenderPassCommand talvos::FillBufferCommand talvos::NextSubpassCommand talvos::ResetEventCommand talvos::SetEventCommand talvos::UpdateBufferCommand talvos::WaitEventsCommand

Public Types

enum  Type {
  BEGIN_RENDER_PASS, BLIT_IMAGE, CLEAR_ATTACHMENT, CLEAR_COLOR_IMAGE,
  COPY_BUFFER, COPY_BUFFER_TO_IMAGE, COPY_IMAGE, COPY_IMAGE_TO_BUFFER,
  DISPATCH, DRAW, DRAW_INDEXED, END_RENDER_PASS,
  FILL_BUFFER, NEXT_SUBPASS, SET_EVENT, RESET_EVENT,
  UPDATE_BUFFER, WAIT_EVENTS
}
 Identifies different Command subclasses. More...
 

Public Member Functions

Type getType () const
 Returns the type of this command. More...
 
void run (Device &Dev) const
 Run this command on Dev. More...
 

Protected Member Functions

 Command (Type Ty)
 Used by subclasses to initialize the command type. More...
 
virtual void runImpl (Device &Dev) const =0
 Command execution method for subclasses. More...
 

Protected Attributes

Type Ty
 The type of this command. More...
 

Detailed Description

This class is a base class for all commands.

Definition at line 31 of file Commands.h.

Member Enumeration Documentation

Identifies different Command subclasses.

Enumerator
BEGIN_RENDER_PASS 
BLIT_IMAGE 
CLEAR_ATTACHMENT 
CLEAR_COLOR_IMAGE 
COPY_BUFFER 
COPY_BUFFER_TO_IMAGE 
COPY_IMAGE 
COPY_IMAGE_TO_BUFFER 
DISPATCH 
DRAW 
DRAW_INDEXED 
END_RENDER_PASS 
FILL_BUFFER 
NEXT_SUBPASS 
SET_EVENT 
RESET_EVENT 
UPDATE_BUFFER 
WAIT_EVENTS 

Definition at line 35 of file Commands.h.

Constructor & Destructor Documentation

talvos::Command::Command ( Type  Ty)
inlineprotected

Used by subclasses to initialize the command type.

Definition at line 65 of file Commands.h.

Member Function Documentation

Type talvos::Command::getType ( ) const
inline

Returns the type of this command.

Definition at line 58 of file Commands.h.

void talvos::Command::run ( Device Dev) const

Run this command on Dev.

Definition at line 23 of file Commands.cpp.

virtual void talvos::Command::runImpl ( Device Dev) const
protectedpure virtual

Member Data Documentation

Type talvos::Command::Ty
protected

The type of this command.

Definition at line 65 of file Commands.h.