Files
aurora/lib/gfx/tex_copy_conv.hpp
T
Luke Street 6b9f614d32 Texture refactor (#78)
- Removes special sampling logic from the GX shader in favor of performing conversions using separate draw calls and swizzling
- Simplifies texture bindings
- Much more accurate EFB copy handling (still incomplete but better)
  - Handle copy clears appropriately (color, alpha, depth) + GXSetDstAlpha copies
- Re-enables code for buffered texture uploads
- Adds `lastTextureUploadSize` to AuroraStats
- Use RG8 + swizzle for IA4/IA8
2026-04-01 00:49:28 -06:00

22 lines
376 B
C++

#pragma once
#include "common.hpp"
#include <dolphin/gx/GXEnum.h>
namespace aurora::gfx::tex_copy_conv {
struct ConvRequest {
GXTexFmt fmt;
TextureHandle src;
TextureHandle dst;
};
bool needs_conversion(GXTexFmt fmt);
void initialize();
void shutdown();
void run(const wgpu::CommandEncoder& cmd, const ConvRequest& req);
} // namespace aurora::gfx::tex_copy_conv