mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-09-12 09:45:04 -04:00
31 lines
748 B
C++
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
|