Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Attributes | List of all members
AsyncTextureTask Struct Reference

Request for an asynchronous texture download. Data has been copied from the source texture to a buffer during the frame. The readback of the buffer to the CPU has to be performed once the frame is complete. More...

#include <GPUInternal.hpp>

Public Attributes

std::shared_ptr< BufferdstBuffer
 Transfer buffer containing the texture data (mappable).
 
std::unique_ptr< TexturedstTexture
 Destination texture whose images have to be populated.
 
std::function< void(const Texture &)> callback
 Callback to execute once the images creation is complete.
 
glm::uvec2 dstImageRange {0u,0u}
 First index and number of images to populate (some mips/layers can be skipped).
 
uint64_t frame = 0
 Frame where the download was requested.
 
GPUAsyncTask id = 0
 Async task ID.
 

Detailed Description

Request for an asynchronous texture download. Data has been copied from the source texture to a buffer during the frame. The readback of the buffer to the CPU has to be performed once the frame is complete.


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