Shader like vectors for C# Scripting

This commit is contained in:
Simon Lübeß
2023-07-20 17:48:28 +02:00
parent f0de874572
commit 3e55a1614a
24 changed files with 1572 additions and 486 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
using GlitchyEngine.Math;
using GlitchyEngine.Math.Attributes;
namespace GlitchyEngine.Math;
[Vector(typeof(double), 2, "double")]
[VectorMath]
[ComparableVector]
[VectorCast(typeof(float2), true)]
public partial struct double2
{
}
[Vector(typeof(double), 3, "double")]
[VectorMath]
[ComparableVector]
[VectorCast(typeof(float3), true)]
public partial struct double3
{
}
[Vector(typeof(double), 4, "double")]
[VectorMath]
[ComparableVector]
[VectorCast(typeof(float4), true)]
public partial struct double4
{
}