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
+23
View File
@@ -0,0 +1,23 @@
using System;
using GlitchyEngine.Math;
using GlitchyEngine.Math.Attributes;
namespace GlitchyEngine.Math;
[Vector(typeof(Half), 2, "half")]
[VectorCast(typeof(float2), true)]
public partial struct half2
{
}
[Vector(typeof(Half), 3, "half")]
[VectorCast(typeof(float3), true)]
public partial struct half3
{
}
[Vector(typeof(Half), 4, "half")]
[VectorCast(typeof(float4), true)]
public partial struct half4
{
}