Example #1
0
 public static bool2 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y)
 {
     return(bool2(
                select_shuffle_component(a, b, x),
                select_shuffle_component(a, b, y)));
 }
Example #2
0
 public static uint2 hashwide(bool2 v)
 {
     return(select(uint2(0xC9F27FCBu, 0x6D2523B1u), uint2(0x6E2BF6A9u, 0xCC74B3B7u), v));
 }
Example #3
0
 public static bool shuffle(bool2 a, bool2 b, ShuffleComponent x)
 {
     return(select_shuffle_component(a, b, x));
 }
Example #4
0
 public static bool2 bool2(bool2 xy)
 {
     return(new bool2(xy));
 }
Example #5
0
 public static uint hash(bool2 v)
 {
     return(csum(select(uint2(0x90A285BBu, 0x5D19E1D5u), uint2(0xFAAF07DDu, 0x625C45BDu), v)));
 }
Example #6
0
 public static float2 float2(bool2 v)
 {
     return(new float2(v));
 }
Example #7
0
 public DebuggerProxy(bool2 v)
 {
     x = v.x;
     y = v.y;
 }
Example #8
0
 public float2(bool2 v)
 {
     this.x = v.x ? 1.0f : 0.0f;
     this.y = v.y ? 1.0f : 0.0f;
 }
Example #9
0
 public bool2x2(bool v)
 {
     this.c0 = v;
     this.c1 = v;
 }
Example #10
0
 public bool2x2(bool m00, bool m01,
                bool m10, bool m11)
 {
     this.c0 = new bool2(m00, m10);
     this.c1 = new bool2(m01, m11);
 }
Example #11
0
 public static bool2x2 bool2x2(bool2 c0, bool2 c1)
 {
     return(new bool2x2(c0, c1));
 }
Example #12
0
 public bool2x2(bool2 c0, bool2 c1)
 {
     this.c0 = c0;
     this.c1 = c1;
 }