mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
6b9f614d32
- 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
22 lines
376 B
C++
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
|