Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Settings/SerializedVirtualTexturingSettings.cs

26 lines
1.1 KiB
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
using UnityEditor.Rendering;
using UnityEngine.Rendering.HighDefinition;
namespace UnityEditor.Rendering.HighDefinition
{
internal sealed class SerializedVirtualTexturingSettings
{
public SerializedProperty root;
public SerializedProperty streamingCpuCacheSizeInMegaBytes;
public SerializedProperty streamingGpuCacheSettings;
public SerializedProperty streamingMipPreloadTexturesPerFrame;
public SerializedProperty streamingPreloadMipCount;
public SerializedVirtualTexturingSettings(SerializedProperty root)
{
this.root = root;
streamingCpuCacheSizeInMegaBytes = root.Find((VirtualTexturingSettingsSRP s) => s.streamingCpuCacheSizeInMegaBytes);
streamingGpuCacheSettings = root.Find((VirtualTexturingSettingsSRP s) => s.streamingGpuCacheSettings);
streamingMipPreloadTexturesPerFrame = root.Find((VirtualTexturingSettingsSRP s) => s.streamingMipPreloadTexturesPerFrame);
streamingPreloadMipCount = root.Find((VirtualTexturingSettingsSRP s) => s.streamingPreloadMipCount);
}
}
}