mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
8e35e1233b
Inspired by https://github.com/KytyPS5/KytyPS5/pull/607 Co-authored-by: BlackCAT <52720489+psnwd@users.noreply.github.com>
25 lines
664 B
C++
25 lines
664 B
C++
#ifndef EMULATOR_SRC_LIBS_HMD2_H_
|
|
#define EMULATOR_SRC_LIBS_HMD2_H_
|
|
|
|
#include <atomic>
|
|
#include <cstdint>
|
|
|
|
namespace Libs::Hmd2 {
|
|
|
|
inline constexpr uint32_t PANEL_WIDTH = 4000;
|
|
inline constexpr uint32_t PANEL_HEIGHT = 2040;
|
|
inline constexpr uint64_t OUTPUT_MODE_89_91HZ = 0x2000c;
|
|
inline constexpr uint64_t OUTPUT_MODE_119_88HZ = 0x2000f;
|
|
inline constexpr int32_t ERROR_REPROJECTION_NOT_INITIALIZED = -1972240373; // 0x8a72000b
|
|
|
|
struct ReprojectionState {
|
|
std::atomic<uint64_t> output_mode {0};
|
|
std::atomic<uint32_t> timing_us {3000};
|
|
};
|
|
|
|
[[nodiscard]] ReprojectionState* GetReprojectionState();
|
|
|
|
} // namespace Libs::Hmd2
|
|
|
|
#endif // EMULATOR_SRC_LIBS_HMD2_H_
|