Files
aurora/lib/gfx/depth_peek.hpp
2026-06-04 23:43:13 -06:00

26 lines
669 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 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