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

This class encapsulates information about a clear attachment command. More...

#include <talvos/Commands.h>

Inheritance diagram for talvos::ClearAttachmentCommand:
talvos::Command

Public Member Functions

 ClearAttachmentCommand (const RenderPassInstance &RPI, const std::vector< VkClearAttachment > &ClearAttachments, const std::vector< VkClearRect > &ClearRects)
 Create a new ClearAttachmentCommand. More...
 
- Public Member Functions inherited from talvos::Command
Type getType () const
 Returns the type of this command. More...
 
void run (Device &Dev) const
 Run this command on Dev. More...
 

Protected Member Functions

virtual void runImpl (Device &Dev) const override
 Command execution handler. More...
 
- Protected Member Functions inherited from talvos::Command
 Command (Type Ty)
 Used by subclasses to initialize the command type. More...
 

Private Attributes

const RenderPassInstanceRPI
 The render pass instance this command is operating inside. More...
 
std::vector< VkClearAttachment > ClearAttachments
 The attachments to clear. More...
 
std::vector< VkClearRect > ClearRects
 The regions to clear. More...
 

Additional Inherited Members

- Public Types inherited from talvos::Command
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...
 
- Protected Attributes inherited from talvos::Command
Type Ty
 The type of this command. More...
 

Detailed Description

This class encapsulates information about a clear attachment command.

Definition at line 121 of file Commands.h.

Constructor & Destructor Documentation

talvos::ClearAttachmentCommand::ClearAttachmentCommand ( const RenderPassInstance RPI,
const std::vector< VkClearAttachment > &  ClearAttachments,
const std::vector< VkClearRect > &  ClearRects 
)
inline

Create a new ClearAttachmentCommand.

Definition at line 125 of file Commands.h.

Member Function Documentation

void talvos::ClearAttachmentCommand::runImpl ( Device Dev) const
overrideprotectedvirtual

Command execution handler.

Implements talvos::Command.

Definition at line 99 of file Commands.cpp.

Member Data Documentation

std::vector<VkClearAttachment> talvos::ClearAttachmentCommand::ClearAttachments
private

The attachments to clear.

Definition at line 141 of file Commands.h.

std::vector<VkClearRect> talvos::ClearAttachmentCommand::ClearRects
private

The regions to clear.

Definition at line 144 of file Commands.h.

const RenderPassInstance& talvos::ClearAttachmentCommand::RPI
private

The render pass instance this command is operating inside.

Definition at line 138 of file Commands.h.