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

29 lines
931 B
C#

using System;
using System.Linq;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.VFX;
namespace UnityEditor.VFX
{
class VFXExpressionLoadCameraBuffer : VFXExpression
{
public VFXExpressionLoadCameraBuffer() : this(VFXCameraBufferValue.Default, VFXValue<Vector2>.Default)
{
}
public VFXExpressionLoadCameraBuffer(VFXExpression cameraBuffer, VFXExpression uv)
: base(Flags.InvalidOnCPU, new VFXExpression[2] { cameraBuffer, uv })
{
}
sealed public override VFXExpressionOperation operation { get { return VFXExpressionOperation.None; } }
sealed public override VFXValueType valueType { get { return VFXValueType.Float4; } }
public sealed override string GetCodeString(string[] parents)
{
return string.Format("LOAD_TEXTURE2D_X_LOD({0}, {1}, 0)", parents[0], parents[1]);
}
}
}