Files
aurora/lib/gfx/tex_copy_conv.hpp
T
Luke Street 33ec54347d Add offscreen rendering support & GXSetTexCopyDst (#89)
* Add offscreen rendering support & GXSetTexCopyDst

* Try to fix alignment for MSVC
2026-04-02 23:01:14 -06:00

24 lines
595 B
C++

#pragma once
#include "common.hpp"
#include <dolphin/gx/GXEnum.h>
namespace aurora::gfx::tex_copy_conv {
struct ConvRequest {
GXTexFmt fmt;
wgpu::TextureView srcView; // View of resolved EFB / offscreen color
Range uniformRange; // UV transform uniform (offset + scale)
TextureHandle dst; // Destination texture
};
bool needs_conversion(GXTexFmt fmt);
void initialize();
void shutdown();
void run(const wgpu::CommandEncoder& cmd, const ConvRequest& req);
void blit(const wgpu::CommandEncoder& cmd, const ConvRequest& req);
} // namespace aurora::gfx::tex_copy_conv