Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Editor/Models/Contexts/Implementations/VFXBasicGPUEvent.cs
Caleb Sandford deQuincey 02c4b5ab66 Adding in new packages
2025-06-05 22:59:18 +01:00

37 lines
970 B
C#

using System;
using System.Linq;
using UnityEngine;
using UnityEngine.VFX;
namespace UnityEditor.VFX
{
[VFXType(VFXTypeAttribute.Usage.ExcludeFromProperty)]
struct GPUEvent
{
/* expected emptiness */
};
[VFXHelpURL("Context-GPUEvent")]
[VFXInfo(name = "GPU Event", category = "#1Event", experimental = true)]
class VFXBasicGPUEvent : VFXContext
{
public VFXBasicGPUEvent() : base(VFXContextType.SpawnerGPU, VFXDataType.None, VFXDataType.SpawnEvent) { }
public override string name { get { return "GPUEvent"; } }
public class InputProperties
{
public GPUEvent evt = new GPUEvent();
}
public override VFXExpressionMapper GetExpressionMapper(VFXDeviceTarget target)
{
return new VFXExpressionMapper();
}
public override bool CanBeCompiled()
{
return outputContexts.Any(c => c.CanBeCompiled());
}
}
}