Removed redundant Vector2 and Vector4 types

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-11 14:35:02 +02:00
1 親 4872fba3b3
コミット 67ff58d6de
3ファイル変更
-36

検索条件に一致するファイルはありません

-7
ファイルの表示
@@ -1,7 +0,0 @@
namespace DirectX12GameEngine.Shaders.Numerics
{
public struct Vector2
{
public static float Length(System.Numerics.Vector2 value) => value.Length();
}
}
-28
ファイルの表示
@@ -1,28 +0,0 @@
namespace DirectX12GameEngine.Shaders.Numerics
{
public struct Vector4
{
private readonly float[] memory;
public Vector4(float x, float y, float z, float w)
{
memory = new float[] { x, y, z, w };
}
public float this[int i]
{
get => memory[i];
set => memory[i] = value;
}
public static implicit operator System.Numerics.Vector4(Vector4 value)
{
return new System.Numerics.Vector4(value[0], value[1], value[2], value[3]);
}
public static implicit operator Vector4(System.Numerics.Vector4 value)
{
return new Vector4(value.X, value.Y, value.Z, value.W);
}
}
}
-1
ファイルの表示
@@ -498,7 +498,6 @@ namespace DirectX12GameEngine.Shaders
{ typeof(Vector2).FullName, "float2" },
{ typeof(Vector3).FullName, "float3" },
{ typeof(Vector4).FullName, "float4" },
{ typeof(Numerics.Vector4).FullName, "float4" },
{ typeof(Numerics.UInt2).FullName, "uint2" },
{ typeof(Numerics.UInt3).FullName, "uint3" },
{ typeof(Matrix4x4).FullName, "float4x4" },