Removed redundant Vector2 and Vector4 types
このコミットが含まれているのは:
1 親
4872fba3b3
コミット
67ff58d6de
3ファイル変更
-36
検索条件に一致するファイルはありません
@@ -1,7 +0,0 @@
|
||||
namespace DirectX12GameEngine.Shaders.Numerics
|
||||
{
|
||||
public struct Vector2
|
||||
{
|
||||
public static float Length(System.Numerics.Vector2 value) => value.Length();
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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" },
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする