You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
1.0 KiB

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;
}
}