Toast Engine
Loading...
Searching...
No Matches
renderer::PendingResourceUpload Class Referenceabstract
Inheritance diagram for renderer::PendingResourceUpload:
Collaboration diagram for renderer::PendingResourceUpload:

Public Member Functions

virtual auto resource () -> IVulkanResource *=0
virtual void build (const VulkanCore &core)=0
virtual void record (vk::CommandBuffer cmd)=0
virtual auto canRecord () const -> bool
 False while another upload has to be recorded first.
virtual void finished ()
void setQueueHandoff (const sync::QueueHandoff &handoff) noexcept
 Before record(). The default keeps one queue and record() ends in a plain barrier.
virtual void recordAcquire (sync::BarrierBatch &batch)
 On the consuming queue after the upload fence signalled. No op for an upload that stayed on one queue.

Public Attributes

vk::DeviceSize host_bytes = 0

Protected Attributes

sync::QueueHandoff m_handoff

Member Function Documentation

◆ recordAcquire()

virtual void renderer::PendingResourceUpload::recordAcquire ( sync::BarrierBatch & batch)
inlinevirtual

On the consuming queue after the upload fence signalled. No op for an upload that stayed on one queue.

Reimplemented in renderer::MeshUpload, renderer::RawTextureUpload, renderer::TextureUpload, and renderer::VoxelSceneUpload.


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