/// <summary>
 /// Set the scaler method used to drive dynamic resolution internally from the Scriptable Rendering Pipeline. This function should only be called by Scriptable Rendering Pipeline.
 /// </summary>
 /// <param name="scaler">The delegate used to determine the resolution percentage used by the dynamic resolution system.</param>
 /// <param name="scalerType">The type of scaler that is used, this is used to indicate the return type of the scaler to the dynamic resolution system.</param>
 static public void SetSystemDynamicResScaler(PerformDynamicRes scaler, DynamicResScalePolicyType scalerType = DynamicResScalePolicyType.ReturnsMinMaxLerpFactor)
 {
     s_ScalerContainers[(int)DynamicResScalerSlot.System] = new ScalerContainer()
     {
         type = scalerType, method = scaler
     };
 }
Esempio n. 2
0
 /// <summary>
 /// Set the scaler method used to drive dynamic resolution.
 /// </summary>
 /// <param name="scaler">The delegate used to determine the resolution percentage used by the dynamic resolution system.</param>
 /// <param name="scalerType">The type of scaler that is used, this is used to indicate the return type of the scaler to the dynamic resolution system.</param>
 static public void SetDynamicResScaler(PerformDynamicRes scaler, DynamicResScalePolicyType scalerType = DynamicResScalePolicyType.ReturnsMinMaxLerpFactor)
 {
     s_Instance.m_ScalerType = scalerType;
     s_Instance.m_DynamicResMethod = scaler;
 }