#pragma warning disable CS0660, CS0661 namespace ComputeSharp; /// /// A that maps the HLSL type. /// public partial struct Bool2 { /// /// Gets an value with all components set to . /// public static Bool2 False => false; /// /// Gets an value with all components set to . /// public static Bool2 True => true; /// /// Gets an value with the component set to , and the others to . /// public static Bool2 TrueX => new(true, false); /// /// Gets an value with the component set to , and the others to . /// public static Bool2 TrueY => new(false, true); /// /// 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; this.y = y; } /// /// 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); }