Files
patchzyy ec226e8348 init
2026-08-23 17:10:50 +02:00

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