Go to the documentation of this file.
30 #include "../../GraphicsEngine/interface/RenderDevice.h"
31 #include "../../GraphicsEngine/interface/DeviceContext.h"
virtual TextureUploaderStats GetStats()=0
Returns texture uploader statistics, see Diligent::TextureUploaderStats.
Uint32 ArraySize
Definition: TextureUploader.hpp:45
Base interface for all dynamic objects in the engine.
Definition: Object.h:41
void CreateTextureUploader(IRenderDevice *pDevice, const TextureUploaderDesc &Desc, ITextureUploader **ppUploader)
Definition: TextureUploader.cpp:43
Uint32 MipLevels
Definition: TextureUploader.hpp:44
Definition: Texture.h:245
bool operator==(const UploadBufferDesc &rhs) const
Definition: TextureUploader.hpp:48
virtual MappedTextureSubresource GetMappedData(Uint32 Mip, Uint32 Slice)=0
@ TEX_FORMAT_UNKNOWN
Unknown format.
Definition: GraphicsTypes.h:331
virtual void ScheduleGPUCopy(IDeviceContext *pContext, ITexture *pDstTexture, Uint32 ArraySlice, Uint32 MipLevel, IUploadBuffer *pUploadBuffer)=0
Schedules a GPU copy or executes the copy immediately.
virtual void RecycleBuffer(IUploadBuffer *pUploadBuffer)=0
Recycles upload buffer to make it available for future operations.
Render device interface.
Definition: RenderDevice.h:75
virtual void WaitForCopyScheduled()=0
virtual void RenderThreadUpdate(IDeviceContext *pContext)=0
Executes pending render-thread operations.
Definition: TextureUploader.hpp:58
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:51
TEXTURE_FORMAT Format
Definition: TextureUploader.hpp:46
Texture uploader description.
Definition: TextureUploader.hpp:67
TEXTURE_FORMAT
Texture formats.
Definition: GraphicsTypes.h:328
Uint32 Width
Definition: TextureUploader.hpp:41
Texture uploader statistics.
Definition: TextureUploader.hpp:73
virtual void AllocateUploadBuffer(IDeviceContext *pContext, const UploadBufferDesc &Desc, IUploadBuffer **ppBuffer)=0
Allocates upload buffer.
Device context interface.
Definition: DeviceContext.h:1460
virtual const UploadBufferDesc & GetDesc() const =0
Asynchronous texture uplader.
Definition: TextureUploader.hpp:79
Uint32 NumPendingOperations
Definition: TextureUploader.hpp:75
Uint32 Height
Definition: TextureUploader.hpp:42
Uint32 Depth
Definition: TextureUploader.hpp:43
Texture inteface.
Definition: Texture.h:273
Upload buffer description.
Definition: TextureUploader.hpp:39
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37