Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Renderer::Backend::Vulkan::CDeviceCommandContext Class Referencefinal

#include <DeviceCommandContext.h>

Inheritance diagram for Renderer::Backend::Vulkan::CDeviceCommandContext:
Collaboration diagram for Renderer::Backend::Vulkan::CDeviceCommandContext:

Classes

class  CUploadRing
 
struct  QueuedReadback
 

Public Member Functions

 ~CDeviceCommandContext () override
 
IDeviceGetDevice () override
 
void SetGraphicsPipelineState (IGraphicsPipelineState *pipelineState) override
 Binds the graphics pipeline state. More...
 
void SetComputePipelineState (IComputePipelineState *pipelineState) override
 Binds the graphics pipeline state. More...
 
void BlitFramebuffer (IFramebuffer *destinationFramebuffer, IFramebuffer *sourceFramebuffer, const Rect &destinationRegion, const Rect &sourceRegion, const Sampler::Filter filter) override
 Copies source region into destination region automatically applying compatible format conversion and scaling using a provided filter. More...
 
void ResolveFramebuffer (IFramebuffer *destinationFramebuffer, IFramebuffer *sourceFramebuffer) override
 Resolves multisample source framebuffer attachments to destination attachments. More...
 
void ClearFramebuffer (const bool color, const bool depth, const bool stencil) override
 Clears all mentioned attachments. More...
 
void BeginFramebufferPass (IFramebuffer *framebuffer) override
 Starts a framebuffer pass, performs attachment load operations. More...
 
void EndFramebufferPass () override
 Finishes a framebuffer pass, performs attachment store operations. More...
 
void ReadbackFramebufferSync (const uint32_t x, const uint32_t y, const uint32_t width, const uint32_t height, void *data) override
 Readbacks the current backbuffer to data in R8G8B8_UNORM format somewhen between the function call and Flush (inclusively). More...
 
void UploadTexture (ITexture *texture, const Format dataFormat, const void *data, const size_t dataSize, const uint32_t level=0, const uint32_t layer=0) override
 
void UploadTextureRegion (ITexture *texture, const Format dataFormat, const void *data, const size_t dataSize, const uint32_t xOffset, const uint32_t yOffset, const uint32_t width, const uint32_t height, const uint32_t level=0, const uint32_t layer=0) override
 
void UploadBuffer (IBuffer *buffer, const void *data, const uint32_t dataSize) override
 
void UploadBuffer (IBuffer *buffer, const UploadBufferFunction &uploadFunction) override
 
void UploadBufferRegion (IBuffer *buffer, const void *data, const uint32_t dataOffset, const uint32_t dataSize) override
 
void UploadBufferRegion (IBuffer *buffer, const uint32_t dataOffset, const uint32_t dataSize, const UploadBufferFunction &uploadFunction) override
 
void SetScissors (const uint32_t scissorCount, const Rect *scissors) override
 
void SetViewports (const uint32_t viewportCount, const Rect *viewports) override
 
void SetVertexInputLayout (IVertexInputLayout *vertexInputLayout) override
 Binds the vertex input layout. More...
 
void SetVertexBuffer (const uint32_t bindingSlot, IBuffer *buffer, const uint32_t offset) override
 
void SetVertexBufferData (const uint32_t bindingSlot, const void *data, const uint32_t dataSize) override
 
void SetIndexBuffer (IBuffer *buffer) override
 
void SetIndexBufferData (const void *data, const uint32_t dataSize) override
 
void BeginPass () override
 
void EndPass () override
 
void Draw (const uint32_t firstVertex, const uint32_t vertexCount) override
 
void DrawIndexed (const uint32_t firstIndex, const uint32_t indexCount, const int32_t vertexOffset) override
 
void DrawInstanced (const uint32_t firstVertex, const uint32_t vertexCount, const uint32_t firstInstance, const uint32_t instanceCount) override
 
void DrawIndexedInstanced (const uint32_t firstIndex, const uint32_t indexCount, const uint32_t firstInstance, const uint32_t instanceCount, const int32_t vertexOffset) override
 
void DrawIndexedInRange (const uint32_t firstIndex, const uint32_t indexCount, const uint32_t start, const uint32_t end) override
 
void BeginComputePass () override
 Starts a compute pass, can't be called inside a framebuffer pass. More...
 
void EndComputePass () override
 Finishes a compute pass. More...
 
void Dispatch (const uint32_t groupCountX, const uint32_t groupCountY, const uint32_t groupCountZ) override
 Dispatches groupCountX * groupCountY * groupCountZ compute groups. More...
 
void SetTexture (const int32_t bindingSlot, ITexture *texture) override
 Sets a read-only texture to the binding slot. More...
 
void SetStorageTexture (const int32_t bindingSlot, ITexture *texture) override
 Sets a read & write resource to the binding slot. More...
 
void SetUniform (const int32_t bindingSlot, const float value) override
 
void SetUniform (const int32_t bindingSlot, const float valueX, const float valueY) override
 
void SetUniform (const int32_t bindingSlot, const float valueX, const float valueY, const float valueZ) override
 
void SetUniform (const int32_t bindingSlot, const float valueX, const float valueY, const float valueZ, const float valueW) override
 
void SetUniform (const int32_t bindingSlot, PS::span< const float > values) override
 
void BeginScopedLabel (const char *name) override
 
void EndScopedLabel () override
 
void Flush () override
 
virtual void SetGraphicsPipelineState (IGraphicsPipelineState *pipelineState)=0
 Binds the graphics pipeline state. More...
 
virtual void SetComputePipelineState (IComputePipelineState *pipelineState)=0
 Binds the graphics pipeline state. More...
 
virtual void BlitFramebuffer (IFramebuffer *sourceFramebuffer, IFramebuffer *destinationFramebuffer, const Rect &sourceRegion, const Rect &destinationRegion, const Sampler::Filter filter)=0
 Copies source region into destination region automatically applying compatible format conversion and scaling using a provided filter. More...
 
virtual void ResolveFramebuffer (IFramebuffer *sourceFramebuffer, IFramebuffer *destinationFramebuffer)=0
 Resolves multisample source framebuffer attachments to destination attachments. More...
 
virtual void BeginFramebufferPass (IFramebuffer *framebuffer)=0
 Starts a framebuffer pass, performs attachment load operations. More...
 
virtual void EndFramebufferPass ()=0
 Finishes a framebuffer pass, performs attachment store operations. More...
 
virtual void ClearFramebuffer (const bool color, const bool depth, const bool stencil)=0
 Clears all mentioned attachments. More...
 
virtual void ReadbackFramebufferSync (const uint32_t x, const uint32_t y, const uint32_t width, const uint32_t height, void *data)=0
 Readbacks the current backbuffer to data in R8G8B8_UNORM format somewhen between the function call and Flush (inclusively). More...
 
virtual void UploadTexture (ITexture *texture, const Format dataFormat, const void *data, const size_t dataSize, const uint32_t level=0, const uint32_t layer=0)=0
 
virtual void UploadTextureRegion (ITexture *texture, const Format dataFormat, const void *data, const size_t dataSize, const uint32_t xOffset, const uint32_t yOffset, const uint32_t width, const uint32_t height, const uint32_t level=0, const uint32_t layer=0)=0
 
virtual void UploadBuffer (IBuffer *buffer, const void *data, const uint32_t dataSize)=0
 
virtual void UploadBuffer (IBuffer *buffer, const UploadBufferFunction &uploadFunction)=0
 
virtual void UploadBufferRegion (IBuffer *buffer, const void *data, const uint32_t dataOffset, const uint32_t dataSize)=0
 
virtual void UploadBufferRegion (IBuffer *buffer, const uint32_t dataOffset, const uint32_t dataSize, const UploadBufferFunction &uploadFunction)=0
 
virtual void SetScissors (const uint32_t scissorCount, const Rect *scissors)=0
 
virtual void SetViewports (const uint32_t viewportCount, const Rect *viewports)=0
 
virtual void SetVertexInputLayout (IVertexInputLayout *vertexInputLayout)=0
 Binds the vertex input layout. More...
 
virtual void SetVertexBuffer (const uint32_t bindingSlot, IBuffer *buffer, const uint32_t offset)=0
 
virtual void SetVertexBufferData (const uint32_t bindingSlot, const void *data, const uint32_t dataSize)=0
 
virtual void SetIndexBuffer (IBuffer *buffer)=0
 
virtual void SetIndexBufferData (const void *data, const uint32_t dataSize)=0
 
virtual void BeginPass ()=0
 
virtual void EndPass ()=0
 
virtual void Draw (const uint32_t firstVertex, const uint32_t vertexCount)=0
 
virtual void DrawIndexed (const uint32_t firstIndex, const uint32_t indexCount, const int32_t vertexOffset)=0
 
virtual void DrawInstanced (const uint32_t firstVertex, const uint32_t vertexCount, const uint32_t firstInstance, const uint32_t instanceCount)=0
 
virtual void DrawIndexedInstanced (const uint32_t firstIndex, const uint32_t indexCount, const uint32_t firstInstance, const uint32_t instanceCount, const int32_t vertexOffset)=0
 
virtual void DrawIndexedInRange (const uint32_t firstIndex, const uint32_t indexCount, const uint32_t start, const uint32_t end)=0
 
virtual void BeginComputePass ()=0
 Starts a compute pass, can't be called inside a framebuffer pass. More...
 
virtual void EndComputePass ()=0
 Finishes a compute pass. More...
 
virtual void Dispatch (const uint32_t groupCountX, const uint32_t groupCountY, const uint32_t groupCountZ)=0
 Dispatches groupCountX * groupCountY * groupCountZ compute groups. More...
 
virtual void SetTexture (const int32_t bindingSlot, ITexture *texture)=0
 Sets a read-only texture to the binding slot. More...
 
virtual void SetStorageTexture (const int32_t bindingSlot, ITexture *texture)=0
 Sets a read & write resource to the binding slot. More...
 
virtual void SetUniform (const int32_t bindingSlot, const float value)=0
 
virtual void SetUniform (const int32_t bindingSlot, const float valueX, const float valueY)=0
 
virtual void SetUniform (const int32_t bindingSlot, const float valueX, const float valueY, const float valueZ)=0
 
virtual void SetUniform (const int32_t bindingSlot, const float valueX, const float valueY, const float valueZ, const float valueW)=0
 
virtual void SetUniform (const int32_t bindingSlot, PS::span< const float > values)=0
 
virtual void BeginScopedLabel (const char *name)=0
 
virtual void EndScopedLabel ()=0
 
virtual void Flush ()=0
 
- Public Member Functions inherited from Renderer::Backend::IDeviceObject< IDeviceCommandContext >
virtual ~IDeviceObject ()
 
virtual IDeviceGetDevice ()=0
 
TAs ()
 

Private Member Functions

 CDeviceCommandContext ()
 
void PreDraw ()
 
void UpdateOutdatedConstants ()
 
void ApplyPipelineStateIfDirty ()
 
void BindVertexBuffer (const uint32_t bindingSlot, CBuffer *buffer, uint32_t offset)
 
void BindIndexBuffer (CBuffer *buffer, uint32_t offset)
 

Static Private Member Functions

static std::unique_ptr< IDeviceCommandContextCreate (CDevice *device)
 

Private Attributes

CDevicem_Device = nullptr
 
bool m_DebugScopedLabels = false
 
std::unique_ptr< CRingCommandContextm_PrependCommandContext
 
std::unique_ptr< CRingCommandContextm_CommandContext
 
CGraphicsPipelineStatem_GraphicsPipelineState = nullptr
 
CVertexInputLayoutm_VertexInputLayout = nullptr
 
CFramebufferm_Framebuffer = nullptr
 
CComputePipelineStatem_ComputePipelineState = nullptr
 
CShaderProgramm_ShaderProgram = nullptr
 
bool m_IsPipelineStateDirty = true
 
VkPipeline m_LastBoundPipeline = VK_NULL_HANDLE
 
bool m_InsideFramebufferPass = false
 
bool m_InsidePass = false
 
bool m_InsideComputePass = false
 
CBufferm_BoundIndexBuffer = nullptr
 
uint32_t m_BoundIndexBufferOffset = 0
 
std::unique_ptr< CUploadRingm_VertexUploadRing
 
std::unique_ptr< CUploadRingm_IndexUploadRing
 
std::unique_ptr< CUploadRingm_UniformUploadRing
 
VkDescriptorPool m_UniformDescriptorPool = VK_NULL_HANDLE
 
VkDescriptorSet m_UniformDescriptorSet = VK_NULL_HANDLE
 
PS::StaticVector< QueuedReadback, 2 > m_QueuedReadbacks
 
bool m_DebugBarrierAfterFramebufferPass = false
 

Friends

class CDevice
 

Additional Inherited Members

- Public Types inherited from Renderer::Backend::IDeviceCommandContext
using UploadBufferFunction = std::function< void(u8 *)>
 

Constructor & Destructor Documentation

◆ ~CDeviceCommandContext()

Renderer::Backend::Vulkan::CDeviceCommandContext::~CDeviceCommandContext ( )
override

◆ CDeviceCommandContext()

Renderer::Backend::Vulkan::CDeviceCommandContext::CDeviceCommandContext ( )
privatedefault

Member Function Documentation

◆ ApplyPipelineStateIfDirty()

void Renderer::Backend::Vulkan::CDeviceCommandContext::ApplyPipelineStateIfDirty ( )
private

◆ BeginComputePass()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BeginComputePass ( )
overridevirtual

Starts a compute pass, can't be called inside a framebuffer pass.

It should be called as rarely as possible.

Implements Renderer::Backend::IDeviceCommandContext.

◆ BeginFramebufferPass()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BeginFramebufferPass ( IFramebuffer framebuffer)
overridevirtual

Starts a framebuffer pass, performs attachment load operations.

It should be called as rarely as possible.

See also
IFramebuffer

Implements Renderer::Backend::IDeviceCommandContext.

◆ BeginPass()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BeginPass ( )
overridevirtual

◆ BeginScopedLabel()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BeginScopedLabel ( const char *  name)
overridevirtual

◆ BindIndexBuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BindIndexBuffer ( CBuffer buffer,
uint32_t  offset 
)
private

◆ BindVertexBuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BindVertexBuffer ( const uint32_t  bindingSlot,
CBuffer buffer,
uint32_t  offset 
)
private

◆ BlitFramebuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::BlitFramebuffer ( IFramebuffer sourceFramebuffer,
IFramebuffer destinationFramebuffer,
const Rect sourceRegion,
const Rect destinationRegion,
const Sampler::Filter  filter 
)
overridevirtual

Copies source region into destination region automatically applying compatible format conversion and scaling using a provided filter.

A backbuffer can't be a source.

Implements Renderer::Backend::IDeviceCommandContext.

◆ ClearFramebuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::ClearFramebuffer ( const bool  color,
const bool  depth,
const bool  stencil 
)
overridevirtual

Clears all mentioned attachments.

Prefer to use attachment load operations over this function. It should be called only inside a framebuffer pass.

Implements Renderer::Backend::IDeviceCommandContext.

◆ Create()

std::unique_ptr< IDeviceCommandContext > Renderer::Backend::Vulkan::CDeviceCommandContext::Create ( CDevice device)
staticprivate

◆ Dispatch()

void Renderer::Backend::Vulkan::CDeviceCommandContext::Dispatch ( const uint32_t  groupCountX,
const uint32_t  groupCountY,
const uint32_t  groupCountZ 
)
overridevirtual

Dispatches groupCountX * groupCountY * groupCountZ compute groups.

Implements Renderer::Backend::IDeviceCommandContext.

◆ Draw()

void Renderer::Backend::Vulkan::CDeviceCommandContext::Draw ( const uint32_t  firstVertex,
const uint32_t  vertexCount 
)
overridevirtual

◆ DrawIndexed()

void Renderer::Backend::Vulkan::CDeviceCommandContext::DrawIndexed ( const uint32_t  firstIndex,
const uint32_t  indexCount,
const int32_t  vertexOffset 
)
overridevirtual

◆ DrawIndexedInRange()

void Renderer::Backend::Vulkan::CDeviceCommandContext::DrawIndexedInRange ( const uint32_t  firstIndex,
const uint32_t  indexCount,
const uint32_t  start,
const uint32_t  end 
)
overridevirtual

◆ DrawIndexedInstanced()

void Renderer::Backend::Vulkan::CDeviceCommandContext::DrawIndexedInstanced ( const uint32_t  firstIndex,
const uint32_t  indexCount,
const uint32_t  firstInstance,
const uint32_t  instanceCount,
const int32_t  vertexOffset 
)
overridevirtual

◆ DrawInstanced()

void Renderer::Backend::Vulkan::CDeviceCommandContext::DrawInstanced ( const uint32_t  firstVertex,
const uint32_t  vertexCount,
const uint32_t  firstInstance,
const uint32_t  instanceCount 
)
overridevirtual

◆ EndComputePass()

void Renderer::Backend::Vulkan::CDeviceCommandContext::EndComputePass ( )
overridevirtual

Finishes a compute pass.

Implements Renderer::Backend::IDeviceCommandContext.

◆ EndFramebufferPass()

void Renderer::Backend::Vulkan::CDeviceCommandContext::EndFramebufferPass ( )
overridevirtual

Finishes a framebuffer pass, performs attachment store operations.

Implements Renderer::Backend::IDeviceCommandContext.

◆ EndPass()

void Renderer::Backend::Vulkan::CDeviceCommandContext::EndPass ( )
overridevirtual

◆ EndScopedLabel()

void Renderer::Backend::Vulkan::CDeviceCommandContext::EndScopedLabel ( )
overridevirtual

◆ Flush()

void Renderer::Backend::Vulkan::CDeviceCommandContext::Flush ( )
overridevirtual

◆ GetDevice()

IDevice * Renderer::Backend::Vulkan::CDeviceCommandContext::GetDevice ( )
overridevirtual

◆ PreDraw()

void Renderer::Backend::Vulkan::CDeviceCommandContext::PreDraw ( )
private

◆ ReadbackFramebufferSync()

void Renderer::Backend::Vulkan::CDeviceCommandContext::ReadbackFramebufferSync ( const uint32_t  x,
const uint32_t  y,
const uint32_t  width,
const uint32_t  height,
void *  data 
)
overridevirtual

Readbacks the current backbuffer to data in R8G8B8_UNORM format somewhen between the function call and Flush (inclusively).

Because of that the data pointer should be valid in that time period and have enough space to fit the readback result.

Note
this operation is very slow and should not be used regularly. TODO: ideally we should do readback on Present or even asynchronously but a client doesn't support that yet.

Implements Renderer::Backend::IDeviceCommandContext.

◆ ResolveFramebuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::ResolveFramebuffer ( IFramebuffer sourceFramebuffer,
IFramebuffer destinationFramebuffer 
)
overridevirtual

Resolves multisample source framebuffer attachments to destination attachments.

Source attachments should have a sample count > 1 and destination attachments should have a sample count = 1. A backbuffer can't be a source.

Implements Renderer::Backend::IDeviceCommandContext.

◆ SetComputePipelineState()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetComputePipelineState ( IComputePipelineState pipelineState)
overridevirtual

Binds the graphics pipeline state.

It should be called only inside a framebuffer pass and as rarely as possible.

Implements Renderer::Backend::IDeviceCommandContext.

◆ SetGraphicsPipelineState()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetGraphicsPipelineState ( IGraphicsPipelineState pipelineState)
overridevirtual

Binds the graphics pipeline state.

It should be called only inside a framebuffer pass and as rarely as possible.

Implements Renderer::Backend::IDeviceCommandContext.

◆ SetIndexBuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetIndexBuffer ( IBuffer buffer)
overridevirtual

◆ SetIndexBufferData()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetIndexBufferData ( const void *  data,
const uint32_t  dataSize 
)
overridevirtual

◆ SetScissors()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetScissors ( const uint32_t  scissorCount,
const Rect scissors 
)
overridevirtual

◆ SetStorageTexture()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetStorageTexture ( const int32_t  bindingSlot,
ITexture texture 
)
overridevirtual

Sets a read & write resource to the binding slot.

Implements Renderer::Backend::IDeviceCommandContext.

◆ SetTexture()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetTexture ( const int32_t  bindingSlot,
ITexture texture 
)
overridevirtual

Sets a read-only texture to the binding slot.

Implements Renderer::Backend::IDeviceCommandContext.

◆ SetUniform() [1/5]

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetUniform ( const int32_t  bindingSlot,
const float  value 
)
overridevirtual

◆ SetUniform() [2/5]

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetUniform ( const int32_t  bindingSlot,
const float  valueX,
const float  valueY 
)
overridevirtual

◆ SetUniform() [3/5]

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetUniform ( const int32_t  bindingSlot,
const float  valueX,
const float  valueY,
const float  valueZ 
)
overridevirtual

◆ SetUniform() [4/5]

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetUniform ( const int32_t  bindingSlot,
const float  valueX,
const float  valueY,
const float  valueZ,
const float  valueW 
)
overridevirtual

◆ SetUniform() [5/5]

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetUniform ( const int32_t  bindingSlot,
PS::span< const float >  values 
)
overridevirtual

◆ SetVertexBuffer()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetVertexBuffer ( const uint32_t  bindingSlot,
IBuffer buffer,
const uint32_t  offset 
)
overridevirtual

◆ SetVertexBufferData()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetVertexBufferData ( const uint32_t  bindingSlot,
const void *  data,
const uint32_t  dataSize 
)
overridevirtual

◆ SetVertexInputLayout()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetVertexInputLayout ( IVertexInputLayout vertexInputLayout)
overridevirtual

Binds the vertex input layout.

It should be compatible with the shader program's one. It should be called only inside a framebuffer pass and as rarely as possible.

Implements Renderer::Backend::IDeviceCommandContext.

◆ SetViewports()

void Renderer::Backend::Vulkan::CDeviceCommandContext::SetViewports ( const uint32_t  viewportCount,
const Rect viewports 
)
overridevirtual

◆ UpdateOutdatedConstants()

void Renderer::Backend::Vulkan::CDeviceCommandContext::UpdateOutdatedConstants ( )
private

◆ UploadBuffer() [1/2]

void Renderer::Backend::Vulkan::CDeviceCommandContext::UploadBuffer ( IBuffer buffer,
const UploadBufferFunction uploadFunction 
)
overridevirtual

◆ UploadBuffer() [2/2]

void Renderer::Backend::Vulkan::CDeviceCommandContext::UploadBuffer ( IBuffer buffer,
const void *  data,
const uint32_t  dataSize 
)
overridevirtual

◆ UploadBufferRegion() [1/2]

void Renderer::Backend::Vulkan::CDeviceCommandContext::UploadBufferRegion ( IBuffer buffer,
const uint32_t  dataOffset,
const uint32_t  dataSize,
const UploadBufferFunction uploadFunction 
)
overridevirtual

◆ UploadBufferRegion() [2/2]

void Renderer::Backend::Vulkan::CDeviceCommandContext::UploadBufferRegion ( IBuffer buffer,
const void *  data,
const uint32_t  dataOffset,
const uint32_t  dataSize 
)
overridevirtual

◆ UploadTexture()

void Renderer::Backend::Vulkan::CDeviceCommandContext::UploadTexture ( ITexture texture,
const Format  dataFormat,
const void *  data,
const size_t  dataSize,
const uint32_t  level = 0,
const uint32_t  layer = 0 
)
overridevirtual

◆ UploadTextureRegion()

void Renderer::Backend::Vulkan::CDeviceCommandContext::UploadTextureRegion ( ITexture texture,
const Format  dataFormat,
const void *  data,
const size_t  dataSize,
const uint32_t  xOffset,
const uint32_t  yOffset,
const uint32_t  width,
const uint32_t  height,
const uint32_t  level = 0,
const uint32_t  layer = 0 
)
overridevirtual

Friends And Related Function Documentation

◆ CDevice

friend class CDevice
friend

Member Data Documentation

◆ m_BoundIndexBuffer

CBuffer* Renderer::Backend::Vulkan::CDeviceCommandContext::m_BoundIndexBuffer = nullptr
private

◆ m_BoundIndexBufferOffset

uint32_t Renderer::Backend::Vulkan::CDeviceCommandContext::m_BoundIndexBufferOffset = 0
private

◆ m_CommandContext

std::unique_ptr<CRingCommandContext> Renderer::Backend::Vulkan::CDeviceCommandContext::m_CommandContext
private

◆ m_ComputePipelineState

CComputePipelineState* Renderer::Backend::Vulkan::CDeviceCommandContext::m_ComputePipelineState = nullptr
private

◆ m_DebugBarrierAfterFramebufferPass

bool Renderer::Backend::Vulkan::CDeviceCommandContext::m_DebugBarrierAfterFramebufferPass = false
private

◆ m_DebugScopedLabels

bool Renderer::Backend::Vulkan::CDeviceCommandContext::m_DebugScopedLabels = false
private

◆ m_Device

CDevice* Renderer::Backend::Vulkan::CDeviceCommandContext::m_Device = nullptr
private

◆ m_Framebuffer

CFramebuffer* Renderer::Backend::Vulkan::CDeviceCommandContext::m_Framebuffer = nullptr
private

◆ m_GraphicsPipelineState

CGraphicsPipelineState* Renderer::Backend::Vulkan::CDeviceCommandContext::m_GraphicsPipelineState = nullptr
private

◆ m_IndexUploadRing

std::unique_ptr<CUploadRing> Renderer::Backend::Vulkan::CDeviceCommandContext::m_IndexUploadRing
private

◆ m_InsideComputePass

bool Renderer::Backend::Vulkan::CDeviceCommandContext::m_InsideComputePass = false
private

◆ m_InsideFramebufferPass

bool Renderer::Backend::Vulkan::CDeviceCommandContext::m_InsideFramebufferPass = false
private

◆ m_InsidePass

bool Renderer::Backend::Vulkan::CDeviceCommandContext::m_InsidePass = false
private

◆ m_IsPipelineStateDirty

bool Renderer::Backend::Vulkan::CDeviceCommandContext::m_IsPipelineStateDirty = true
private

◆ m_LastBoundPipeline

VkPipeline Renderer::Backend::Vulkan::CDeviceCommandContext::m_LastBoundPipeline = VK_NULL_HANDLE
private

◆ m_PrependCommandContext

std::unique_ptr<CRingCommandContext> Renderer::Backend::Vulkan::CDeviceCommandContext::m_PrependCommandContext
private

◆ m_QueuedReadbacks

PS::StaticVector<QueuedReadback, 2> Renderer::Backend::Vulkan::CDeviceCommandContext::m_QueuedReadbacks
private

◆ m_ShaderProgram

CShaderProgram* Renderer::Backend::Vulkan::CDeviceCommandContext::m_ShaderProgram = nullptr
private

◆ m_UniformDescriptorPool

VkDescriptorPool Renderer::Backend::Vulkan::CDeviceCommandContext::m_UniformDescriptorPool = VK_NULL_HANDLE
private

◆ m_UniformDescriptorSet

VkDescriptorSet Renderer::Backend::Vulkan::CDeviceCommandContext::m_UniformDescriptorSet = VK_NULL_HANDLE
private

◆ m_UniformUploadRing

std::unique_ptr<CUploadRing> Renderer::Backend::Vulkan::CDeviceCommandContext::m_UniformUploadRing
private

◆ m_VertexInputLayout

CVertexInputLayout* Renderer::Backend::Vulkan::CDeviceCommandContext::m_VertexInputLayout = nullptr
private

◆ m_VertexUploadRing

std::unique_ptr<CUploadRing> Renderer::Backend::Vulkan::CDeviceCommandContext::m_VertexUploadRing
private

The documentation for this class was generated from the following files: