mirror of
https://github.com/avatarmanz/VIctory-7900XTX.git
synced 2026-12-06 09:08:35 +00:00
Two-plane compose on by default (VICTORY_PLANES=0 turns it off): it acts only when a second plane is presented
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -35,10 +35,12 @@ float4 ps(V v) : SV_Target {
|
||||
"#;
|
||||
|
||||
/// Whether a second presented plane is composed over the first
|
||||
/// (`VICTORY_PLANES=1`; off by default).
|
||||
/// (`VICTORY_PLANES`; on by default, `0` turns it off). It acts only when
|
||||
/// the title presents a second plane (the Series S profile does; Series X
|
||||
/// presents one), so the default costs nothing elsewhere.
|
||||
pub(crate) fn on() -> bool {
|
||||
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var_os("VICTORY_PLANES").is_some_and(|v| v == "1"))
|
||||
*ON.get_or_init(|| std::env::var_os("VICTORY_PLANES").is_none_or(|v| v != "0"))
|
||||
}
|
||||
|
||||
pub(crate) struct Composer {
|
||||
|
||||
Reference in New Issue
Block a user