mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
28
gpu/third_party/suyu/common/settings.h
vendored
Normal file
28
gpu/third_party/suyu/common/settings.h
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// Rexcomp replacement for suyu's common/settings.h: only the values shader_recompiler reads, at suyu's defaults.
|
||||
#pragma once
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace Settings {
|
||||
enum class AstcRecompression : u32 { Uncompressed = 0, Bc1 = 1, Bc3 = 2 };
|
||||
template <typename T>
|
||||
struct Setting {
|
||||
T value;
|
||||
T GetValue() const { return value; }
|
||||
operator T() const { return value; }
|
||||
};
|
||||
struct ResolutionScalingInfo {
|
||||
u32 up_scale{1};
|
||||
u32 down_shift{0};
|
||||
f32 up_factor{1.0f};
|
||||
f32 down_factor{1.0f};
|
||||
bool active{false};
|
||||
};
|
||||
struct Values {
|
||||
Setting<bool> disable_shader_loop_safety_checks{false};
|
||||
Setting<bool> renderer_debug{false};
|
||||
Setting<bool> rescale_hack{false};
|
||||
ResolutionScalingInfo resolution_info{};
|
||||
Setting<AstcRecompression> astc_recompression{AstcRecompression::Uncompressed};
|
||||
};
|
||||
inline Values values;
|
||||
} // namespace Settings
|
||||
Reference in New Issue
Block a user