#pragma warning disable CS0660, CS0661 namespace ComputeSharp; /// /// A that maps the HLSL type. /// public partial struct Int4 { /// /// 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 Int4(int x) => new(x, x, x, x); /// /// Casts a value to a one. /// /// The input value to cast. /// 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 explicit operator UInt4(Int4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. /// 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 implicit operator Float4(Int4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. /// 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 implicit operator Double4(Int4 xyzw) => default; }