mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-09-11 17:31:29 -04:00
27 lines
691 B
C++
27 lines
691 B
C++
#pragma once
|
|
|
|
#include "common.hpp"
|
|
|
|
#include <vector>
|
|
|
|
namespace aurora::gfx::depth_peek {
|
|
|
|
void initialize();
|
|
void shutdown();
|
|
|
|
void request_snapshot() noexcept;
|
|
bool read_latest(uint16_t x, uint16_t y, uint32_t& z) noexcept;
|
|
void poll() noexcept;
|
|
|
|
void encode_frame_snapshot(const wgpu::CommandEncoder& cmd, const wgpu::TextureView& depthView,
|
|
wgpu::Extent3D sourceSize, uint32_t msaaSamples) noexcept;
|
|
void after_submit() noexcept;
|
|
|
|
namespace testing {
|
|
void reset() noexcept;
|
|
bool snapshot_requested() noexcept;
|
|
void set_latest(uint32_t width, uint32_t height, const std::vector<uint32_t>& data);
|
|
} // namespace testing
|
|
|
|
} // namespace aurora::gfx::depth_peek
|