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::CopyImageToBufferCommand Class Reference

This class encapsulates information about a copy image to buffer command. More...

#include <talvos/Commands.h>

Inheritance diagram for talvos::CopyImageToBufferCommand:
talvos::Command

Public Member Functions

 CopyImageToBufferCommand (const Image &SrcImage, uint64_t DstAddr, const std::vector< VkBufferImageCopy > &Regions)
 Create a new CopyImageToBufferCommand. 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 ImageSrcImage
 The source image. More...
 
uint64_t DstAddr
 The memory address of the destination buffer. More...
 
std::vector< VkBufferImageCopy > Regions
 The regions to copy. 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 copy image to buffer command.

Definition at line 252 of file Commands.h.

Constructor & Destructor Documentation

talvos::CopyImageToBufferCommand::CopyImageToBufferCommand ( const Image SrcImage,
uint64_t  DstAddr,
const std::vector< VkBufferImageCopy > &  Regions 
)
inline

Create a new CopyImageToBufferCommand.

Definition at line 256 of file Commands.h.

Member Function Documentation

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

Command execution handler.

Implements talvos::Command.

Definition at line 289 of file Commands.cpp.

Member Data Documentation

uint64_t talvos::CopyImageToBufferCommand::DstAddr
private

The memory address of the destination buffer.

Definition at line 271 of file Commands.h.

std::vector<VkBufferImageCopy> talvos::CopyImageToBufferCommand::Regions
private

The regions to copy.

Definition at line 274 of file Commands.h.

const Image& talvos::CopyImageToBufferCommand::SrcImage
private

The source image.

Definition at line 268 of file Commands.h.