Files
wiicompiled/aurora-main/lib/gfx/tex_copy_conv.hpp
T
patchzyy ec226e8348 init
2026-08-23 17:10:50 +02:00

31 lines
748 B
C++

#pragma once
#include "common.hpp"
#include <dolphin/gx/GXEnum.h>
namespace aurora::gfx::tex_copy_conv {
enum class SampleFilter : uint8_t {
Nearest,
Linear,
};
struct ConvRequest {
GXTexFmt fmt;
wgpu::TextureView srcView; // View of resolved EFB / offscreen color/depth
Range uniformRange; // UV transform uniform (offset + scale)
TextureHandle dst; // Destination texture
SampleFilter sampleFilter = SampleFilter::Nearest;
bool forceOpaqueAlpha = false;
};
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