#pragma warning disable CS0660, CS0661 namespace ComputeSharp; /// /// A that maps the HLSL type. /// public partial struct Bool2 { /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the first vector component. /// The value to assign to the second vector component. public Bool2(bool x, bool y) { this.x = x ? 1 : 0; this.y = y ? 1 : 0; } /// /// 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 Bool2(bool x) => new(x, x); }