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.
 
 
 
 
 

36 lines
968 B

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 = "Event", 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());
}
}
}