candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
WriteTextureToImage.h File Reference
#include "../core/Core.h"
#include <SDL3/SDL_gpu.h>

Go to the source code of this file.

Classes

struct  candlewick::media::DownloadResult
 
class  candlewick::media::TransferBufferPool
 Transfer buffer for the texture downloader. More...
 

Namespaces

namespace  candlewick
 
namespace  candlewick::media
 

Functions

DownloadResult candlewick::media::downloadTexture (CommandBuffer &command_buffer, const Device &device, TransferBufferPool &pool, SDL_GPUTexture *texture, SDL_GPUTextureFormat format, const Uint16 width, const Uint16 height)
 Download texture to a mapped buffer.
 
void candlewick::media::saveTextureToFile (CommandBuffer &command_buffer, const Device &device, TransferBufferPool &pool, SDL_GPUTexture *texture, SDL_GPUTextureFormat format, const Uint16 width, const Uint16 height, std::string_view filename)