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.
18 lines
560 B
18 lines
560 B
namespace UnityEngine.Rendering.RenderGraphModule
|
|
{
|
|
public partial class RenderGraph
|
|
{
|
|
internal static class DebugDataSerialization
|
|
{
|
|
public static string ToJson(DebugData debugData)
|
|
{
|
|
return debugData != null ? JsonUtility.ToJson(debugData, prettyPrint: false) : string.Empty;
|
|
}
|
|
|
|
public static DebugData FromJson(string json)
|
|
{
|
|
return !string.IsNullOrEmpty(json) ? JsonUtility.FromJson<DebugData>(json) : null;
|
|
}
|
|
}
|
|
}
|
|
}
|