Files
wiicompiled/runtime/include/game_graphics_options.h
T
patchzyy ec226e8348 init
2026-08-23 17:10:50 +02:00

26 lines
733 B
C++

#pragma once
#include <atomic>
#include <cstdint>
namespace RuntimeGameGraphicsOptions {
inline std::atomic<uint32_t>& DisabledPostProcessingPathsState() noexcept {
static std::atomic<uint32_t> disabledMask{0};
return disabledMask;
}
inline uint32_t DisabledPostProcessingPaths() noexcept {
return DisabledPostProcessingPathsState().load(std::memory_order_relaxed);
}
inline void SetDisabledPostProcessingPaths(uint32_t disabledMask) noexcept {
DisabledPostProcessingPathsState().store(disabledMask, std::memory_order_relaxed);
}
inline uint32_t FilterScnRendererPathMask(uint32_t pathMask) noexcept {
return pathMask & ~(DisabledPostProcessingPaths() | 0x20u);
}
} // namespace RuntimeGameGraphicsOptions