Talvos
0.1
SPIR-V interpreter and dynamic analysis framework
|
This class encapsulates information about a draw command. More...
#include <talvos/Commands.h>
Public Member Functions | |
DrawCommand (const PipelineContext &PC, const std::shared_ptr< RenderPassInstance > RPI, uint32_t NumVertices, uint32_t VertexOffset, uint32_t NumInstances, uint32_t InstanceOffset) | |
Create a new DrawCommand. More... | |
Public Member Functions inherited from talvos::DrawCommandBase | |
DrawCommandBase (Type Ty, const PipelineContext &PC, const std::shared_ptr< RenderPassInstance > RPI, uint32_t NumVertices, uint32_t VertexOffset, uint32_t NumInstances, uint32_t InstanceOffset) | |
Create a new DrawCommandBase. More... | |
uint32_t | getInstanceOffset () const |
Returns the offset of the first instance. More... | |
uint32_t | getNumInstances () const |
Returns the number of instances. More... | |
uint32_t | getNumVertices () const |
Returns the number of vertices. More... | |
const PipelineContext & | getPipelineContext () const |
Returns the pipeline context. More... | |
const RenderPassInstance & | getRenderPassInstance () const |
Returns the render pass instance used by this command. More... | |
uint32_t | getVertexOffset () const |
Returns the offset of the first vertex. More... | |
void | setRenderPassInstance (const std::shared_ptr< RenderPassInstance > RPI) |
Set the render pass instance used by this command. 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... | |
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... | |
This class encapsulates information about a draw command.
Definition at line 371 of file Commands.h.
|
inline |
Create a new DrawCommand.
PC | The pipeline context used for the draw command. |
RPI | The render pass instance to use. |
NumVertices | The number of vertices to draw. |
VertexOffset | The offset of the first vertex. |
NumInstances | The number of instances to draw. |
InstanceOffset | The offset of the first instance. |
Definition at line 382 of file Commands.h.
|
overrideprotectedvirtual |
Command execution handler.
Implements talvos::DrawCommandBase.
Definition at line 344 of file Commands.cpp.