Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Settings/SerializedDynamicResolutionSettings.cs
2024-08-26 23:07:20 +03:00

66 lines
4.1 KiB
C#

using UnityEditor.Rendering;
using UnityEngine.Rendering;
namespace UnityEditor.Rendering.HighDefinition
{
class SerializedDynamicResolutionSettings
{
public SerializedProperty root;
public SerializedProperty enabled;
public SerializedProperty useMipBias;
public SerializedProperty DLSSPerfQualitySetting;
public SerializedProperty DLSSInjectionPoint;
public SerializedProperty DLSSUseOptimalSettings;
public SerializedProperty DLSSSharpness;
public SerializedProperty FSR2EnableSharpness;
public SerializedProperty FSR2Sharpness;
public SerializedProperty FSR2UseOptimalSettings;
public SerializedProperty FSR2QualitySetting;
public SerializedProperty FSR2InjectionPoint;
public SerializedProperty fsrOverrideSharpness;
public SerializedProperty fsrSharpness;
public SerializedProperty maxPercentage;
public SerializedProperty minPercentage;
public SerializedProperty dynamicResType;
public SerializedProperty softwareUpsamplingFilter;
public SerializedProperty forcePercentage;
public SerializedProperty forcedPercentage;
public SerializedProperty lowResTransparencyMinimumThreshold;
public SerializedProperty rayTracingHalfResThreshold;
public SerializedProperty lowResSSGIMinimumThreshold;
public SerializedProperty lowResVolumetricCloudsMinimumThreshold;
public SerializedProperty advancedUpscalersByPriority;
public SerializedDynamicResolutionSettings(SerializedProperty root)
{
this.root = root;
enabled = root.Find((GlobalDynamicResolutionSettings s) => s.enabled);
useMipBias = root.Find((GlobalDynamicResolutionSettings s) => s.useMipBias);
DLSSPerfQualitySetting = root.Find((GlobalDynamicResolutionSettings s) => s.DLSSPerfQualitySetting);
DLSSInjectionPoint = root.Find((GlobalDynamicResolutionSettings s) => s.DLSSInjectionPoint);
DLSSUseOptimalSettings = root.Find((GlobalDynamicResolutionSettings s) => s.DLSSUseOptimalSettings);
DLSSSharpness = root.Find((GlobalDynamicResolutionSettings s) => s.DLSSSharpness);
advancedUpscalersByPriority = root.Find((GlobalDynamicResolutionSettings s) => s.advancedUpscalersByPriority);
FSR2EnableSharpness = root.Find((GlobalDynamicResolutionSettings s) => s.FSR2EnableSharpness);
FSR2Sharpness = root.Find((GlobalDynamicResolutionSettings s) => s.FSR2Sharpness);
FSR2UseOptimalSettings = root.Find((GlobalDynamicResolutionSettings s) => s.FSR2UseOptimalSettings);
FSR2QualitySetting = root.Find((GlobalDynamicResolutionSettings s) => s.FSR2QualitySetting);
FSR2InjectionPoint = root.Find((GlobalDynamicResolutionSettings s) => s.FSR2InjectionPoint);
fsrOverrideSharpness = root.Find((GlobalDynamicResolutionSettings s) => s.fsrOverrideSharpness);
fsrSharpness = root.Find((GlobalDynamicResolutionSettings s) => s.fsrSharpness);
maxPercentage = root.Find((GlobalDynamicResolutionSettings s) => s.maxPercentage);
minPercentage = root.Find((GlobalDynamicResolutionSettings s) => s.minPercentage);
dynamicResType = root.Find((GlobalDynamicResolutionSettings s) => s.dynResType);
softwareUpsamplingFilter = root.Find((GlobalDynamicResolutionSettings s) => s.upsampleFilter);
forcePercentage = root.Find((GlobalDynamicResolutionSettings s) => s.forceResolution);
forcedPercentage = root.Find((GlobalDynamicResolutionSettings s) => s.forcedPercentage);
lowResTransparencyMinimumThreshold = root.Find((GlobalDynamicResolutionSettings s) => s.lowResTransparencyMinimumThreshold);
rayTracingHalfResThreshold = root.Find((GlobalDynamicResolutionSettings s) => s.rayTracingHalfResThreshold);
lowResSSGIMinimumThreshold = root.Find((GlobalDynamicResolutionSettings s) => s.lowResSSGIMinimumThreshold);
lowResVolumetricCloudsMinimumThreshold = root.Find((GlobalDynamicResolutionSettings s) => s.lowResVolumetricCloudsMinimumThreshold);
}
}
}