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