Files
wiicompiled/aurora-main/lib/dolphin/gx/GXCpu2Efb.cpp
T
patchzyy ec226e8348 init
2026-08-23 17:10:50 +02:00

21 lines
404 B
C++

#include "gx.hpp"
#include "../../gfx/depth_peek.hpp"
#include <dolphin/gx/GXCpu2Efb.h>
void GXPeekZ(u16 x, u16 y, u32* z) {
aurora::gfx::depth_peek::poll();
if (z != nullptr) {
u32 value = 0;
if (aurora::gfx::depth_peek::read_latest(x, y, value)) {
*z = value;
} else {
*z = g_gxState.clearDepth & 0x00ffffffu;
}
}
aurora::gfx::depth_peek::request_snapshot();
}