Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/VirtualTexturingSettingsSRP.cs

31 lines
1.0 KiB
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Rendering;
using UnityEngine.Experimental.Rendering;
namespace UnityEngine.Rendering.HighDefinition
{
[Serializable]
internal sealed class VirtualTexturingSettingsSRP
{
public int streamingCpuCacheSizeInMegaBytes = 256;
public int streamingMipPreloadTexturesPerFrame = 0;
public int streamingPreloadMipCount = 1;
public List<GPUCacheSettingSRP> streamingGpuCacheSettings = new List<GPUCacheSettingSRP>() { new GPUCacheSettingSRP() { format = Experimental.Rendering.GraphicsFormat.None, sizeInMegaBytes = 128 } };
}
[Serializable]
internal struct GPUCacheSettingSRP
{
/// <summary>
/// <para>Format of the cache these settings are applied to.</para>
/// </summary>
public GraphicsFormat format;
/// <summary>
/// <para>Size in MegaBytes of the cache created with these settings.</para>
/// </summary>
public uint sizeInMegaBytes;
}
}