Add Graphics.TestValue general purpose utility for A/B testing features and perf in shaders during development

This commit is contained in:
Wojtek Figat
2026-01-16 12:48:05 +01:00
parent 593646061e
commit baf068330c
4 changed files with 18 additions and 1 deletions

View File

@@ -90,6 +90,16 @@ public:
/// </summary>
API_FIELD() static bool SpreadWorkload;
#if BUILD_RELEASE && !USE_EDITOR
/// <summary>Unused.</summary>
API_FIELD() static constexpr float TestValue = 0.0f;
#else
/// <summary>
/// Debug utility to control visual or rendering features during development. For example, can be used to branch different code paths in shaders for A/B testing (perf or quality).
/// </summary>
API_FIELD() static float TestValue;
#endif
public:
// Post Processing effects rendering configuration.
API_CLASS(Static, Attributes = "DebugCommand") class FLAXENGINE_API PostProcessing