mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 07:00:30 +02:00
init
This commit is contained in:
commit
ec226e8348
1099 files changed
+400981
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#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
|
||||
Reference in new issue
Block a user