您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
46 行
1.2 KiB
46 行
1.2 KiB
using System;
|
|
|
|
namespace UnityEngine.Rendering
|
|
{
|
|
|
|
public enum DynamicResolutionType : byte
|
|
{
|
|
Software,
|
|
Hardware,
|
|
//Temporal // Not yet supported
|
|
}
|
|
|
|
public enum DynamicResUpscaleFilter : byte
|
|
{
|
|
Bilinear,
|
|
CatmullRom,
|
|
Lanczos,
|
|
// Difference of Gaussians? [aka unsharp]
|
|
}
|
|
|
|
[Serializable]
|
|
public struct GlobalDynamicResolutionSettings
|
|
{
|
|
/// <summary>Default GlobalDynamicResolutionSettings</summary>
|
|
public static readonly GlobalDynamicResolutionSettings @default = new GlobalDynamicResolutionSettings()
|
|
{
|
|
maxPercentage = 100.0f,
|
|
minPercentage = 100.0f,
|
|
// It fall-backs to software when not supported, so it makes sense to have it on by default.
|
|
dynResType = DynamicResolutionType.Hardware,
|
|
upsampleFilter = DynamicResUpscaleFilter.CatmullRom,
|
|
forcedPercentage = 100.0f
|
|
};
|
|
|
|
public bool enabled;
|
|
|
|
public float maxPercentage;
|
|
public float minPercentage;
|
|
|
|
public DynamicResolutionType dynResType;
|
|
public DynamicResUpscaleFilter upsampleFilter;
|
|
|
|
public bool forceResolution;
|
|
public float forcedPercentage;
|
|
}
|
|
}
|