using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.Core.Intrinsics.Attributes;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
#endif
#pragma warning disable CS0660, CS0661
namespace ComputeSharp;
///
[StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)]
public unsafe partial struct Float1x1
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x1), sizeof(Float4));
[FieldOffset(0)]
private float m11;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
public Float1x1(float m11)
{
this.m11 = m11;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref float this[int row] => ref *(float*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float1x1(float x)
{
Float1x1 matrix;
matrix.m11 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator -(Float1x1 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator +(Float1x1 left, Float1x1 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator /(Float1x1 left, Float1x1 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator %(Float1x1 left, Float1x1 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator *(Float1x1 left, Float1x1 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator *(Float1x1 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator *(float left, Float1x1 right) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x1 operator -(Float1x1 left, Float1x1 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x1 operator >(Float1x1 left, Float1x1 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x1 operator >=(Float1x1 left, Float1x1 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x1 operator <(Float1x1 left, Float1x1 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x1 operator <=(Float1x1 left, Float1x1 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x1 operator ==(Float1x1 left, Float1x1 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x1 operator !=(Float1x1 left, Float1x1 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
public unsafe partial struct Float1x2
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x2), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
public Float1x2(float m11, float m12)
{
this.m11 = m11;
this.m12 = m12;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float1x2(float x)
{
Float1x2 matrix;
matrix.m11 = x;
matrix.m12 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator -(Float1x2 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator +(Float1x2 left, Float1x2 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator /(Float1x2 left, Float1x2 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator %(Float1x2 left, Float1x2 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator *(Float1x2 left, Float1x2 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator *(Float1x2 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator *(float left, Float1x2 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x2 input value.
/// The second Float2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static float operator *(Float1x2 x, Float2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x1 input value.
/// The second Float1x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x2 operator *(Float1x1 x, Float1x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x2 input value.
/// The second Float2x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x1 operator *(Float1x2 x, Float2x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x2 input value.
/// The second Float2x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x2 operator *(Float1x2 x, Float2x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x2 input value.
/// The second Float2x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x3 operator *(Float1x2 x, Float2x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x2 input value.
/// The second Float2x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x4 operator *(Float1x2 x, Float2x4 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x2 operator -(Float1x2 left, Float1x2 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x2 operator >(Float1x2 left, Float1x2 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x2 operator >=(Float1x2 left, Float1x2 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x2 operator <(Float1x2 left, Float1x2 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x2 operator <=(Float1x2 left, Float1x2 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x2 operator ==(Float1x2 left, Float1x2 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x2 operator !=(Float1x2 left, Float1x2 right) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
public static implicit operator Float1x2(Float2 vector) => *(Float1x2*)&vector;
}
///
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
public unsafe partial struct Float1x3
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x3), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
public Float1x3(float m11, float m12, float m13)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float1x3(float x)
{
Float1x3 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator -(Float1x3 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator +(Float1x3 left, Float1x3 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator /(Float1x3 left, Float1x3 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator %(Float1x3 left, Float1x3 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator *(Float1x3 left, Float1x3 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator *(Float1x3 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator *(float left, Float1x3 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x3 input value.
/// The second Float3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static float operator *(Float1x3 x, Float3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x1 input value.
/// The second Float1x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x3 operator *(Float1x1 x, Float1x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x3 input value.
/// The second Float3x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x1 operator *(Float1x3 x, Float3x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x3 input value.
/// The second Float3x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x2 operator *(Float1x3 x, Float3x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x3 input value.
/// The second Float3x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x3 operator *(Float1x3 x, Float3x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x3 input value.
/// The second Float3x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x4 operator *(Float1x3 x, Float3x4 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x3 operator -(Float1x3 left, Float1x3 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x3 operator >(Float1x3 left, Float1x3 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x3 operator >=(Float1x3 left, Float1x3 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x3 operator <(Float1x3 left, Float1x3 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x3 operator <=(Float1x3 left, Float1x3 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x3 operator ==(Float1x3 left, Float1x3 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x3 operator !=(Float1x3 left, Float1x3 right) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
public static implicit operator Float1x3(Float3 vector) => *(Float1x3*)&vector;
}
///
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
public unsafe partial struct Float1x4
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x4), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m14;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [1, 4].
public Float1x4(float m11, float m12, float m13, float m14)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m14 = m14;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [1, 4].
///
[UnscopedRef]
public ref float M14 => ref this.m14;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float1x4(float x)
{
Float1x4 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m14 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator -(Float1x4 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator +(Float1x4 left, Float1x4 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator /(Float1x4 left, Float1x4 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator %(Float1x4 left, Float1x4 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator *(Float1x4 left, Float1x4 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator *(Float1x4 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator *(float left, Float1x4 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x4 input value.
/// The second Float4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static float operator *(Float1x4 x, Float4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x1 input value.
/// The second Float1x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x4 operator *(Float1x1 x, Float1x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x4 input value.
/// The second Float4x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x1 operator *(Float1x4 x, Float4x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x4 input value.
/// The second Float4x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x2 operator *(Float1x4 x, Float4x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x4 input value.
/// The second Float4x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x3 operator *(Float1x4 x, Float4x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float1x4 input value.
/// The second Float4x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float1x4 operator *(Float1x4 x, Float4x4 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float1x4 operator -(Float1x4 left, Float1x4 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x4 operator >(Float1x4 left, Float1x4 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x4 operator >=(Float1x4 left, Float1x4 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x4 operator <(Float1x4 left, Float1x4 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x4 operator <=(Float1x4 left, Float1x4 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x4 operator ==(Float1x4 left, Float1x4 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool1x4 operator !=(Float1x4 left, Float1x4 right) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
public static implicit operator Float1x4(Float4 vector) => *(Float1x4*)&vector;
}
///
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
public unsafe partial struct Float2x1
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x1), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m21;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [2, 1].
public Float2x1(float m11, float m21)
{
this.m11 = m11;
this.m21 = m21;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref float this[int row] => ref *(float*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float2x1(float x)
{
Float2x1 matrix;
matrix.m11 = x;
matrix.m21 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator -(Float2x1 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator +(Float2x1 left, Float2x1 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator /(Float2x1 left, Float2x1 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator %(Float2x1 left, Float2x1 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator *(Float2x1 left, Float2x1 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator *(Float2x1 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator *(float left, Float2x1 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x1 input value.
/// The second Float1x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x1 operator *(Float2x1 x, Float1x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x1 input value.
/// The second Float1x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x2 operator *(Float2x1 x, Float1x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x1 input value.
/// The second Float1x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x3 operator *(Float2x1 x, Float1x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x1 input value.
/// The second Float1x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x4 operator *(Float2x1 x, Float1x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x2 input value.
/// The second Float2x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x1 operator *(Float2x2 x, Float2x1 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x1 operator -(Float2x1 left, Float2x1 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x1 operator >(Float2x1 left, Float2x1 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x1 operator >=(Float2x1 left, Float2x1 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x1 operator <(Float2x1 left, Float2x1 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x1 operator <=(Float2x1 left, Float2x1 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x1 operator ==(Float2x1 left, Float2x1 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x1 operator !=(Float2x1 left, Float2x1 right) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
public static implicit operator Float2(Float2x1 matrix) => *(Float2*)&matrix;
}
///
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
public unsafe partial struct Float2x2
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x2), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m21;
[FieldOffset(12)]
private float m22;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
public Float2x2(float m11, float m12, float m21, float m22)
{
this.m11 = m11;
this.m12 = m12;
this.m21 = m21;
this.m22 = m22;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
public Float2x2(Float2 row1, Float2 row2)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m21 = row2.X;
this.m22 = row2.Y;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float2x2(float x)
{
Float2x2 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m21 = x;
matrix.m22 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator -(Float2x2 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator +(Float2x2 left, Float2x2 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator /(Float2x2 left, Float2x2 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator %(Float2x2 left, Float2x2 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator *(Float2x2 left, Float2x2 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator *(Float2x2 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator *(float left, Float2x2 right) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x2 operator -(Float2x2 left, Float2x2 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x2 operator >(Float2x2 left, Float2x2 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x2 operator >=(Float2x2 left, Float2x2 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x2 operator <(Float2x2 left, Float2x2 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x2 operator <=(Float2x2 left, Float2x2 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x2 operator ==(Float2x2 left, Float2x2 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x2 operator !=(Float2x2 left, Float2x2 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
public unsafe partial struct Float2x3
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x3), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m21;
[FieldOffset(16)]
private float m22;
[FieldOffset(20)]
private float m23;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [2, 3].
public Float2x3(float m11, float m12, float m13, float m21, float m22, float m23)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m21 = m21;
this.m22 = m22;
this.m23 = m23;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
public Float2x3(Float3 row1, Float3 row2)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m13 = row1.Z;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m23 = row2.Z;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [2, 3].
///
[UnscopedRef]
public ref float M23 => ref this.m23;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float2x3(float x)
{
Float2x3 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m23 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator -(Float2x3 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator +(Float2x3 left, Float2x3 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator /(Float2x3 left, Float2x3 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator %(Float2x3 left, Float2x3 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator *(Float2x3 left, Float2x3 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator *(Float2x3 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator *(float left, Float2x3 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x3 input value.
/// The second Float3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2 operator *(Float2x3 x, Float3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x2 input value.
/// The second Float2x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x3 operator *(Float2x2 x, Float2x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x3 input value.
/// The second Float3x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x1 operator *(Float2x3 x, Float3x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x3 input value.
/// The second Float3x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x2 operator *(Float2x3 x, Float3x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x3 input value.
/// The second Float3x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x3 operator *(Float2x3 x, Float3x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x3 input value.
/// The second Float3x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x4 operator *(Float2x3 x, Float3x4 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x3 operator -(Float2x3 left, Float2x3 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x3 operator >(Float2x3 left, Float2x3 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x3 operator >=(Float2x3 left, Float2x3 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x3 operator <(Float2x3 left, Float2x3 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x3 operator <=(Float2x3 left, Float2x3 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x3 operator ==(Float2x3 left, Float2x3 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x3 operator !=(Float2x3 left, Float2x3 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
public unsafe partial struct Float2x4
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x4), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m14;
[FieldOffset(16)]
private float m21;
[FieldOffset(20)]
private float m22;
[FieldOffset(24)]
private float m23;
[FieldOffset(28)]
private float m24;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [1, 4].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [2, 3].
/// The value to assign to the component at position [2, 4].
public Float2x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m14 = m14;
this.m21 = m21;
this.m22 = m22;
this.m23 = m23;
this.m24 = m24;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
public Float2x4(Float4 row1, Float4 row2)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m13 = row1.Z;
this.m14 = row1.W;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m23 = row2.Z;
this.m24 = row2.W;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [1, 4].
///
[UnscopedRef]
public ref float M14 => ref this.m14;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [2, 3].
///
[UnscopedRef]
public ref float M23 => ref this.m23;
///
/// Gets a reference to the value representing the component at position [2, 4].
///
[UnscopedRef]
public ref float M24 => ref this.m24;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float2x4(float x)
{
Float2x4 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m14 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m23 = x;
matrix.m24 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator -(Float2x4 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator +(Float2x4 left, Float2x4 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator /(Float2x4 left, Float2x4 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator %(Float2x4 left, Float2x4 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator *(Float2x4 left, Float2x4 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator *(Float2x4 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator *(float left, Float2x4 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x4 input value.
/// The second Float4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2 operator *(Float2x4 x, Float4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x2 input value.
/// The second Float2x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x4 operator *(Float2x2 x, Float2x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x4 input value.
/// The second Float4x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x1 operator *(Float2x4 x, Float4x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x4 input value.
/// The second Float4x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x2 operator *(Float2x4 x, Float4x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x4 input value.
/// The second Float4x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x3 operator *(Float2x4 x, Float4x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float2x4 input value.
/// The second Float4x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float2x4 operator *(Float2x4 x, Float4x4 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float2x4 operator -(Float2x4 left, Float2x4 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x4 operator >(Float2x4 left, Float2x4 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x4 operator >=(Float2x4 left, Float2x4 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x4 operator <(Float2x4 left, Float2x4 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x4 operator <=(Float2x4 left, Float2x4 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x4 operator ==(Float2x4 left, Float2x4 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2x4 operator !=(Float2x4 left, Float2x4 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
public unsafe partial struct Float3x1
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x1), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m21;
[FieldOffset(8)]
private float m31;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [3, 1].
public Float3x1(float m11, float m21, float m31)
{
this.m11 = m11;
this.m21 = m21;
this.m31 = m31;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref float this[int row] => ref *(float*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float3x1(float x)
{
Float3x1 matrix;
matrix.m11 = x;
matrix.m21 = x;
matrix.m31 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator -(Float3x1 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator +(Float3x1 left, Float3x1 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator /(Float3x1 left, Float3x1 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator %(Float3x1 left, Float3x1 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator *(Float3x1 left, Float3x1 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator *(Float3x1 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator *(float left, Float3x1 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x1 input value.
/// The second Float1x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x1 operator *(Float3x1 x, Float1x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x1 input value.
/// The second Float1x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x2 operator *(Float3x1 x, Float1x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x1 input value.
/// The second Float1x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x3 operator *(Float3x1 x, Float1x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x1 input value.
/// The second Float1x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x4 operator *(Float3x1 x, Float1x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x3 input value.
/// The second Float3x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x1 operator *(Float3x3 x, Float3x1 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x1 operator -(Float3x1 left, Float3x1 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x1 operator >(Float3x1 left, Float3x1 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x1 operator >=(Float3x1 left, Float3x1 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x1 operator <(Float3x1 left, Float3x1 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x1 operator <=(Float3x1 left, Float3x1 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x1 operator ==(Float3x1 left, Float3x1 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x1 operator !=(Float3x1 left, Float3x1 right) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
public static implicit operator Float3(Float3x1 matrix) => *(Float3*)&matrix;
}
///
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
public unsafe partial struct Float3x2
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x2), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m21;
[FieldOffset(12)]
private float m22;
[FieldOffset(16)]
private float m31;
[FieldOffset(20)]
private float m32;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [3, 2].
public Float3x2(float m11, float m12, float m21, float m22, float m31, float m32)
{
this.m11 = m11;
this.m12 = m12;
this.m21 = m21;
this.m22 = m22;
this.m31 = m31;
this.m32 = m32;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
/// The value to assign to the row at position [3].
public Float3x2(Float2 row1, Float2 row2, Float2 row3)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m31 = row3.X;
this.m32 = row3.Y;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [3, 2].
///
[UnscopedRef]
public ref float M32 => ref this.m32;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float3x2(float x)
{
Float3x2 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m31 = x;
matrix.m32 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator -(Float3x2 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator +(Float3x2 left, Float3x2 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator /(Float3x2 left, Float3x2 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator %(Float3x2 left, Float3x2 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator *(Float3x2 left, Float3x2 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator *(Float3x2 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator *(float left, Float3x2 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x2 input value.
/// The second Float2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3 operator *(Float3x2 x, Float2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x2 input value.
/// The second Float2x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x1 operator *(Float3x2 x, Float2x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x2 input value.
/// The second Float2x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x2 operator *(Float3x2 x, Float2x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x2 input value.
/// The second Float2x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x3 operator *(Float3x2 x, Float2x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x2 input value.
/// The second Float2x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x4 operator *(Float3x2 x, Float2x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x3 input value.
/// The second Float3x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x2 operator *(Float3x3 x, Float3x2 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x2 operator -(Float3x2 left, Float3x2 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x2 operator >(Float3x2 left, Float3x2 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x2 operator >=(Float3x2 left, Float3x2 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x2 operator <(Float3x2 left, Float3x2 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x2 operator <=(Float3x2 left, Float3x2 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x2 operator ==(Float3x2 left, Float3x2 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x2 operator !=(Float3x2 left, Float3x2 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)]
public unsafe partial struct Float3x3
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x3), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m21;
[FieldOffset(16)]
private float m22;
[FieldOffset(20)]
private float m23;
[FieldOffset(24)]
private float m31;
[FieldOffset(28)]
private float m32;
[FieldOffset(32)]
private float m33;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [2, 3].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [3, 2].
/// The value to assign to the component at position [3, 3].
public Float3x3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m21 = m21;
this.m22 = m22;
this.m23 = m23;
this.m31 = m31;
this.m32 = m32;
this.m33 = m33;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
/// The value to assign to the row at position [3].
public Float3x3(Float3 row1, Float3 row2, Float3 row3)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m13 = row1.Z;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m23 = row2.Z;
this.m31 = row3.X;
this.m32 = row3.Y;
this.m33 = row3.Z;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [2, 3].
///
[UnscopedRef]
public ref float M23 => ref this.m23;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [3, 2].
///
[UnscopedRef]
public ref float M32 => ref this.m32;
///
/// Gets a reference to the value representing the component at position [3, 3].
///
[UnscopedRef]
public ref float M33 => ref this.m33;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float3x3(float x)
{
Float3x3 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m23 = x;
matrix.m31 = x;
matrix.m32 = x;
matrix.m33 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator -(Float3x3 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator +(Float3x3 left, Float3x3 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator /(Float3x3 left, Float3x3 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator %(Float3x3 left, Float3x3 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator *(Float3x3 left, Float3x3 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator *(Float3x3 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator *(float left, Float3x3 right) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x3 operator -(Float3x3 left, Float3x3 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x3 operator >(Float3x3 left, Float3x3 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x3 operator >=(Float3x3 left, Float3x3 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x3 operator <(Float3x3 left, Float3x3 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x3 operator <=(Float3x3 left, Float3x3 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x3 operator ==(Float3x3 left, Float3x3 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x3 operator !=(Float3x3 left, Float3x3 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
public unsafe partial struct Float3x4
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x4), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m14;
[FieldOffset(16)]
private float m21;
[FieldOffset(20)]
private float m22;
[FieldOffset(24)]
private float m23;
[FieldOffset(28)]
private float m24;
[FieldOffset(32)]
private float m31;
[FieldOffset(36)]
private float m32;
[FieldOffset(40)]
private float m33;
[FieldOffset(44)]
private float m34;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [1, 4].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [2, 3].
/// The value to assign to the component at position [2, 4].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [3, 2].
/// The value to assign to the component at position [3, 3].
/// The value to assign to the component at position [3, 4].
public Float3x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m14 = m14;
this.m21 = m21;
this.m22 = m22;
this.m23 = m23;
this.m24 = m24;
this.m31 = m31;
this.m32 = m32;
this.m33 = m33;
this.m34 = m34;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
/// The value to assign to the row at position [3].
public Float3x4(Float4 row1, Float4 row2, Float4 row3)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m13 = row1.Z;
this.m14 = row1.W;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m23 = row2.Z;
this.m24 = row2.W;
this.m31 = row3.X;
this.m32 = row3.Y;
this.m33 = row3.Z;
this.m34 = row3.W;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [1, 4].
///
[UnscopedRef]
public ref float M14 => ref this.m14;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [2, 3].
///
[UnscopedRef]
public ref float M23 => ref this.m23;
///
/// Gets a reference to the value representing the component at position [2, 4].
///
[UnscopedRef]
public ref float M24 => ref this.m24;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [3, 2].
///
[UnscopedRef]
public ref float M32 => ref this.m32;
///
/// Gets a reference to the value representing the component at position [3, 3].
///
[UnscopedRef]
public ref float M33 => ref this.m33;
///
/// Gets a reference to the value representing the component at position [3, 4].
///
[UnscopedRef]
public ref float M34 => ref this.m34;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float3x4(float x)
{
Float3x4 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m14 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m23 = x;
matrix.m24 = x;
matrix.m31 = x;
matrix.m32 = x;
matrix.m33 = x;
matrix.m34 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator -(Float3x4 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator +(Float3x4 left, Float3x4 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator /(Float3x4 left, Float3x4 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator %(Float3x4 left, Float3x4 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator *(Float3x4 left, Float3x4 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator *(Float3x4 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator *(float left, Float3x4 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x4 input value.
/// The second Float4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3 operator *(Float3x4 x, Float4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x3 input value.
/// The second Float3x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x4 operator *(Float3x3 x, Float3x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x4 input value.
/// The second Float4x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x1 operator *(Float3x4 x, Float4x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x4 input value.
/// The second Float4x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x2 operator *(Float3x4 x, Float4x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x4 input value.
/// The second Float4x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x3 operator *(Float3x4 x, Float4x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float3x4 input value.
/// The second Float4x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float3x4 operator *(Float3x4 x, Float4x4 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float3x4 operator -(Float3x4 left, Float3x4 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x4 operator >(Float3x4 left, Float3x4 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x4 operator >=(Float3x4 left, Float3x4 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x4 operator <(Float3x4 left, Float3x4 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x4 operator <=(Float3x4 left, Float3x4 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x4 operator ==(Float3x4 left, Float3x4 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3x4 operator !=(Float3x4 left, Float3x4 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
public unsafe partial struct Float4x1
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x1), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m21;
[FieldOffset(8)]
private float m31;
[FieldOffset(12)]
private float m41;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [4, 1].
public Float4x1(float m11, float m21, float m31, float m41)
{
this.m11 = m11;
this.m21 = m21;
this.m31 = m31;
this.m41 = m41;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref float this[int row] => ref *(float*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [4, 1].
///
[UnscopedRef]
public ref float M41 => ref this.m41;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float4x1(float x)
{
Float4x1 matrix;
matrix.m11 = x;
matrix.m21 = x;
matrix.m31 = x;
matrix.m41 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator -(Float4x1 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator +(Float4x1 left, Float4x1 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator /(Float4x1 left, Float4x1 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator %(Float4x1 left, Float4x1 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator *(Float4x1 left, Float4x1 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator *(Float4x1 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator *(float left, Float4x1 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x1 input value.
/// The second Float1x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x1 operator *(Float4x1 x, Float1x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x1 input value.
/// The second Float1x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x2 operator *(Float4x1 x, Float1x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x1 input value.
/// The second Float1x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x3 operator *(Float4x1 x, Float1x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x1 input value.
/// The second Float1x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x4 operator *(Float4x1 x, Float1x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x4 input value.
/// The second Float4x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x1 operator *(Float4x4 x, Float4x1 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x1 operator -(Float4x1 left, Float4x1 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x1 operator >(Float4x1 left, Float4x1 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x1 operator >=(Float4x1 left, Float4x1 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x1 operator <(Float4x1 left, Float4x1 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x1 operator <=(Float4x1 left, Float4x1 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x1 operator ==(Float4x1 left, Float4x1 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x1 operator !=(Float4x1 left, Float4x1 right) => default;
///
/// Casts a value to a one.
///
/// The input value to cast.
public static implicit operator Float4(Float4x1 matrix) => *(Float4*)&matrix;
}
///
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
public unsafe partial struct Float4x2
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x2), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m21;
[FieldOffset(12)]
private float m22;
[FieldOffset(16)]
private float m31;
[FieldOffset(20)]
private float m32;
[FieldOffset(24)]
private float m41;
[FieldOffset(28)]
private float m42;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [3, 2].
/// The value to assign to the component at position [4, 1].
/// The value to assign to the component at position [4, 2].
public Float4x2(float m11, float m12, float m21, float m22, float m31, float m32, float m41, float m42)
{
this.m11 = m11;
this.m12 = m12;
this.m21 = m21;
this.m22 = m22;
this.m31 = m31;
this.m32 = m32;
this.m41 = m41;
this.m42 = m42;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
/// The value to assign to the row at position [3].
/// The value to assign to the row at position [4].
public Float4x2(Float2 row1, Float2 row2, Float2 row3, Float2 row4)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m31 = row3.X;
this.m32 = row3.Y;
this.m41 = row4.X;
this.m42 = row4.Y;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [3, 2].
///
[UnscopedRef]
public ref float M32 => ref this.m32;
///
/// Gets a reference to the value representing the component at position [4, 1].
///
[UnscopedRef]
public ref float M41 => ref this.m41;
///
/// Gets a reference to the value representing the component at position [4, 2].
///
[UnscopedRef]
public ref float M42 => ref this.m42;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float4x2(float x)
{
Float4x2 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m31 = x;
matrix.m32 = x;
matrix.m41 = x;
matrix.m42 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator -(Float4x2 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator +(Float4x2 left, Float4x2 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator /(Float4x2 left, Float4x2 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator %(Float4x2 left, Float4x2 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator *(Float4x2 left, Float4x2 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator *(Float4x2 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator *(float left, Float4x2 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x2 input value.
/// The second Float2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4 operator *(Float4x2 x, Float2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x2 input value.
/// The second Float2x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x1 operator *(Float4x2 x, Float2x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x2 input value.
/// The second Float2x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x2 operator *(Float4x2 x, Float2x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x2 input value.
/// The second Float2x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x3 operator *(Float4x2 x, Float2x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x2 input value.
/// The second Float2x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x4 operator *(Float4x2 x, Float2x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x4 input value.
/// The second Float4x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x2 operator *(Float4x4 x, Float4x2 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x2 operator -(Float4x2 left, Float4x2 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x2 operator >(Float4x2 left, Float4x2 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x2 operator >=(Float4x2 left, Float4x2 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x2 operator <(Float4x2 left, Float4x2 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x2 operator <=(Float4x2 left, Float4x2 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x2 operator ==(Float4x2 left, Float4x2 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x2 operator !=(Float4x2 left, Float4x2 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
public unsafe partial struct Float4x3
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x3), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m21;
[FieldOffset(16)]
private float m22;
[FieldOffset(20)]
private float m23;
[FieldOffset(24)]
private float m31;
[FieldOffset(28)]
private float m32;
[FieldOffset(32)]
private float m33;
[FieldOffset(36)]
private float m41;
[FieldOffset(40)]
private float m42;
[FieldOffset(44)]
private float m43;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [2, 3].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [3, 2].
/// The value to assign to the component at position [3, 3].
/// The value to assign to the component at position [4, 1].
/// The value to assign to the component at position [4, 2].
/// The value to assign to the component at position [4, 3].
public Float4x3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33, float m41, float m42, float m43)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m21 = m21;
this.m22 = m22;
this.m23 = m23;
this.m31 = m31;
this.m32 = m32;
this.m33 = m33;
this.m41 = m41;
this.m42 = m42;
this.m43 = m43;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
/// The value to assign to the row at position [3].
/// The value to assign to the row at position [4].
public Float4x3(Float3 row1, Float3 row2, Float3 row3, Float3 row4)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m13 = row1.Z;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m23 = row2.Z;
this.m31 = row3.X;
this.m32 = row3.Y;
this.m33 = row3.Z;
this.m41 = row4.X;
this.m42 = row4.Y;
this.m43 = row4.Z;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [2, 3].
///
[UnscopedRef]
public ref float M23 => ref this.m23;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [3, 2].
///
[UnscopedRef]
public ref float M32 => ref this.m32;
///
/// Gets a reference to the value representing the component at position [3, 3].
///
[UnscopedRef]
public ref float M33 => ref this.m33;
///
/// Gets a reference to the value representing the component at position [4, 1].
///
[UnscopedRef]
public ref float M41 => ref this.m41;
///
/// Gets a reference to the value representing the component at position [4, 2].
///
[UnscopedRef]
public ref float M42 => ref this.m42;
///
/// Gets a reference to the value representing the component at position [4, 3].
///
[UnscopedRef]
public ref float M43 => ref this.m43;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float4x3(float x)
{
Float4x3 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m23 = x;
matrix.m31 = x;
matrix.m32 = x;
matrix.m33 = x;
matrix.m41 = x;
matrix.m42 = x;
matrix.m43 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator -(Float4x3 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator +(Float4x3 left, Float4x3 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator /(Float4x3 left, Float4x3 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator %(Float4x3 left, Float4x3 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator *(Float4x3 left, Float4x3 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator *(Float4x3 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator *(float left, Float4x3 right) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x3 input value.
/// The second Float3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4 operator *(Float4x3 x, Float3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x3 input value.
/// The second Float3x1 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x1 operator *(Float4x3 x, Float3x1 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x3 input value.
/// The second Float3x2 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x2 operator *(Float4x3 x, Float3x2 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x3 input value.
/// The second Float3x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x3 operator *(Float4x3 x, Float3x3 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x3 input value.
/// The second Float3x4 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x4 operator *(Float4x3 x, Float3x4 y) => default;
///
/// Multiplies two values using matrix math.
///
/// The first Float4x4 input value.
/// The second Float4x3 input value.
/// The result of times . The result has the dimension -rows by -columns.
///
/// This operator is equivalent to using with the same input arguments.
/// For more info, see .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[HlslIntrinsicName("mul", RequiresParametersMatching = true)]
public static Float4x3 operator *(Float4x4 x, Float4x3 y) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x3 operator -(Float4x3 left, Float4x3 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x3 operator >(Float4x3 left, Float4x3 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x3 operator >=(Float4x3 left, Float4x3 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x3 operator <(Float4x3 left, Float4x3 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x3 operator <=(Float4x3 left, Float4x3 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x3 operator ==(Float4x3 left, Float4x3 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x3 operator !=(Float4x3 left, Float4x3 right) => default;
}
///
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)]
public unsafe partial struct Float4x4
{
///
/// A private buffer to which the undefined properties will point to.
///
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x4), sizeof(Float4));
[FieldOffset(0)]
private float m11;
[FieldOffset(4)]
private float m12;
[FieldOffset(8)]
private float m13;
[FieldOffset(12)]
private float m14;
[FieldOffset(16)]
private float m21;
[FieldOffset(20)]
private float m22;
[FieldOffset(24)]
private float m23;
[FieldOffset(28)]
private float m24;
[FieldOffset(32)]
private float m31;
[FieldOffset(36)]
private float m32;
[FieldOffset(40)]
private float m33;
[FieldOffset(44)]
private float m34;
[FieldOffset(48)]
private float m41;
[FieldOffset(52)]
private float m42;
[FieldOffset(56)]
private float m43;
[FieldOffset(60)]
private float m44;
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the component at position [1, 1].
/// The value to assign to the component at position [1, 2].
/// The value to assign to the component at position [1, 3].
/// The value to assign to the component at position [1, 4].
/// The value to assign to the component at position [2, 1].
/// The value to assign to the component at position [2, 2].
/// The value to assign to the component at position [2, 3].
/// The value to assign to the component at position [2, 4].
/// The value to assign to the component at position [3, 1].
/// The value to assign to the component at position [3, 2].
/// The value to assign to the component at position [3, 3].
/// The value to assign to the component at position [3, 4].
/// The value to assign to the component at position [4, 1].
/// The value to assign to the component at position [4, 2].
/// The value to assign to the component at position [4, 3].
/// The value to assign to the component at position [4, 4].
public Float4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
{
this.m11 = m11;
this.m12 = m12;
this.m13 = m13;
this.m14 = m14;
this.m21 = m21;
this.m22 = m22;
this.m23 = m23;
this.m24 = m24;
this.m31 = m31;
this.m32 = m32;
this.m33 = m33;
this.m34 = m34;
this.m41 = m41;
this.m42 = m42;
this.m43 = m43;
this.m44 = m44;
}
///
/// Creates a new instance with the specified parameters.
///
/// The value to assign to the row at position [1].
/// The value to assign to the row at position [2].
/// The value to assign to the row at position [3].
/// The value to assign to the row at position [4].
public Float4x4(Float4 row1, Float4 row2, Float4 row3, Float4 row4)
{
this.m11 = row1.X;
this.m12 = row1.Y;
this.m13 = row1.Z;
this.m14 = row1.W;
this.m21 = row2.X;
this.m22 = row2.Y;
this.m23 = row2.Z;
this.m24 = row2.W;
this.m31 = row3.X;
this.m32 = row3.Y;
this.m33 = row3.Z;
this.m34 = row3.W;
this.m41 = row4.X;
this.m42 = row4.Y;
this.m43 = row4.Z;
this.m44 = row4.W;
}
///
/// Gets a reference to a specific row in the current instance.
///
/// The row to access.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
///
[UnscopedRef]
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
///
/// The identifier of the first item to index.
/// The identifier of the second item to index.
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
///
/// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
/// s
[UnscopedRef]
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
///
/// Gets a reference to the value representing the component at position [1, 1].
///
[UnscopedRef]
public ref float M11 => ref this.m11;
///
/// Gets a reference to the value representing the component at position [1, 2].
///
[UnscopedRef]
public ref float M12 => ref this.m12;
///
/// Gets a reference to the value representing the component at position [1, 3].
///
[UnscopedRef]
public ref float M13 => ref this.m13;
///
/// Gets a reference to the value representing the component at position [1, 4].
///
[UnscopedRef]
public ref float M14 => ref this.m14;
///
/// Gets a reference to the value representing the component at position [2, 1].
///
[UnscopedRef]
public ref float M21 => ref this.m21;
///
/// Gets a reference to the value representing the component at position [2, 2].
///
[UnscopedRef]
public ref float M22 => ref this.m22;
///
/// Gets a reference to the value representing the component at position [2, 3].
///
[UnscopedRef]
public ref float M23 => ref this.m23;
///
/// Gets a reference to the value representing the component at position [2, 4].
///
[UnscopedRef]
public ref float M24 => ref this.m24;
///
/// Gets a reference to the value representing the component at position [3, 1].
///
[UnscopedRef]
public ref float M31 => ref this.m31;
///
/// Gets a reference to the value representing the component at position [3, 2].
///
[UnscopedRef]
public ref float M32 => ref this.m32;
///
/// Gets a reference to the value representing the component at position [3, 3].
///
[UnscopedRef]
public ref float M33 => ref this.m33;
///
/// Gets a reference to the value representing the component at position [3, 4].
///
[UnscopedRef]
public ref float M34 => ref this.m34;
///
/// Gets a reference to the value representing the component at position [4, 1].
///
[UnscopedRef]
public ref float M41 => ref this.m41;
///
/// Gets a reference to the value representing the component at position [4, 2].
///
[UnscopedRef]
public ref float M42 => ref this.m42;
///
/// Gets a reference to the value representing the component at position [4, 3].
///
[UnscopedRef]
public ref float M43 => ref this.m43;
///
/// Gets a reference to the value representing the component at position [4, 4].
///
[UnscopedRef]
public ref float M44 => ref this.m44;
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
public static implicit operator Float4x4(float x)
{
Float4x4 matrix;
matrix.m11 = x;
matrix.m12 = x;
matrix.m13 = x;
matrix.m14 = x;
matrix.m21 = x;
matrix.m22 = x;
matrix.m23 = x;
matrix.m24 = x;
matrix.m31 = x;
matrix.m32 = x;
matrix.m33 = x;
matrix.m34 = x;
matrix.m41 = x;
matrix.m42 = x;
matrix.m43 = x;
matrix.m44 = x;
return matrix;
}
///
/// Negates a value.
///
/// The value to negate.
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator -(Float4x4 matrix) => default;
///
/// Sums two values.
///
/// The first value to sum.
/// The second value to sum.
/// The result of adding and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator +(Float4x4 left, Float4x4 right) => default;
///
/// Divides two values (elementwise division).
///
/// The first value to divide.
/// The second value to divide.
/// The result of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator /(Float4x4 left, Float4x4 right) => default;
///
/// Calculates the remainder of the division between two values.
///
/// The first value to divide.
/// The second value to divide.
/// The remainder of dividing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator %(Float4x4 left, Float4x4 right) => default;
///
/// Multiplies two values (elementwise product).
///
/// The first value to multiply.
/// The second value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator *(Float4x4 left, Float4x4 right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator *(Float4x4 left, float right) => default;
///
/// Multiplies a pair of and values.
///
/// The value to multiply.
/// The value to multiply.
/// The result of multiplying and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator *(float left, Float4x4 right) => default;
///
/// Subtracts two values.
///
/// The first value to subtract.
/// The second value to subtract.
/// The result of subtracting and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Float4x4 operator -(Float4x4 left, Float4x4 right) => default;
///
/// Compares two values to see if the first is greater than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x4 operator >(Float4x4 left, Float4x4 right) => default;
///
/// Compares two values to see if the first is greater than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x4 operator >=(Float4x4 left, Float4x4 right) => default;
///
/// Compares two values to see if the first is lower than the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x4 operator <(Float4x4 left, Float4x4 right) => default;
///
/// Compares two values to see if the first is lower than or equal to the second.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x4 operator <=(Float4x4 left, Float4x4 right) => default;
///
/// Compares two values to see if they are equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x4 operator ==(Float4x4 left, Float4x4 right) => default;
///
/// Compares two values to see if they are not equal.
///
/// The first value to compare.
/// The second value to compare.
/// The result of comparing and .
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4x4 operator !=(Float4x4 left, Float4x4 right) => default;
}