VFXExpressionBakeGradient.cs 582 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Linq;
  3. using System.Runtime.CompilerServices;
  4. using UnityEngine;
  5. using UnityEngine.VFX;
  6. namespace UnityEditor.VFX
  7. {
  8. class VFXExpressionBakeGradient : VFXExpression
  9. {
  10. public VFXExpressionBakeGradient() : this(VFXValue<Gradient>.Default)
  11. {
  12. }
  13. public VFXExpressionBakeGradient(VFXExpression curve)
  14. : base(Flags.InvalidOnGPU, new VFXExpression[1] { curve })
  15. {
  16. }
  17. sealed public override VFXExpressionOperation operation { get { return VFXExpressionOperation.BakeGradient; } }
  18. }
  19. }