Exemple #1
0
 public bool3x3(bool3 c0, bool3 c1, bool3 c2)
 {
     this.c0 = c0;
     this.c1 = c1;
     this.c2 = c2;
 }
 public static bool and(this bool3 value)
 {
     return(value.x && value.y && value.z);
 }
Exemple #3
0
 public static bool shuffle(bool3 a, bool3 b, ShuffleComponent x)
 {
     return(select_shuffle_component(a, b, x));
 }
 public static bool3x4 bool3x4(bool3 c0, bool3 c1, bool3 c2, bool3 c3)
 {
     return(new bool3x4(c0, c1, c2, c3));
 }
Exemple #5
0
 public DebuggerProxy(bool3 v)
 {
     x = v.x;
     y = v.y;
     z = v.z;
 }
Exemple #6
0
 public static uint hash(bool3 v)
 {
     return(csum(select(uint3(0xAAC3C25Du, 0xD21D0945u, 0x88FCAB2Du), uint3(0x614DA60Du, 0x5BA2C50Bu, 0x8C455ACBu), v)));
 }
Exemple #7
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static bool all(bool3 a)
 {
     return(a.x && a.y && a.z);
 }
Exemple #8
0
 public static uint3 hashwide(bool3 v)
 {
     return(select(uint3(0x5F17300Du, 0x670D6809u, 0x7AF32C49u), uint3(0xAE131389u, 0x5D1B165Bu, 0x87096CD7u), v));
 }
Exemple #9
0
 public static uint3 hashwide(bool3 v)
 {
     return(select(uint3(0xFD80290Bu, 0x8B65ADB7u, 0xDFF4F563u), uint3(0x7069770Du, 0xD1224537u, 0xE99ED6F3u), v));
 }
 public static uint hash(bool3 v)
 {
     return(csum(select(uint3(0xD6258E5Bu, 0xEE390C97u, 0x9C8A2F05u), uint3(0x4DDC6509u, 0x7CF083CBu, 0x5C4D6CEDu), v)));
 }
Exemple #11
0
 public static uint hash(bool3 v)
 {
     return(csum(select(uint3(0xCF6EBA1Du, 0x9D88E5A1u, 0xEADF0775u), uint3(0x747A9D7Bu, 0x4111F799u, 0xB5F05AF1u), v)));
 }
 public static uint hash(bool3 v)
 {
     return(csum(select(uint3(0xD54BA36Fu, 0xFD0847B9u, 0x8189A683u), uint3(0xB139D651u, 0xE7579997u, 0xEF7D56C7u), v)));
 }
 public static bool or(this bool3 value)
 {
     return(value.x || value.y || value.z);
 }
 public bool3x2(bool v)
 {
     this.c0 = v;
     this.c1 = v;
 }
Exemple #15
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static int3 select(int3 a, int3 b, bool3 c)
 {
     return(new int3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z));
 }
Exemple #16
0
 public static uint hash(bool3 v)
 {
     return(csum(select(uint3(0xA1E92D39u, 0x4583C801u, 0x9536A0F5u), uint3(0xAF816615u, 0x9AF8D62Du, 0xE3600729u), v)));
 }
Exemple #17
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static float3 select(float3 a, float3 b, bool3 c)
 {
     return(new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z));
 }
Exemple #18
0
 public static bool3 select(bool3 a, bool3 b, bool3 c)
 {
     return(a ^ ((a ^ b) & c));
 }
Exemple #19
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public static bool any(bool3 a)
 {
     return(a.x || a.y || a.z);
 }
Exemple #20
0
 public static bool3 bool3(bool3 xyz)
 {
     return(new bool3(xyz));
 }
Exemple #21
0
 [MethodImpl((MethodImplOptions)0x100)] // agressive inline
 public bool4(bool3 xyz, bool w)
 {
     x = xyz.x; y = xyz.y; z = xyz.z; this.w = w;
 }
Exemple #22
0
 public static uint3 hash_wide(bool3 v)
 {
     return(select(uint3(0xCD266C89u, 0xF1852A33u, 0x77E35E77u), uint3(0x863E3729u, 0xE191B035u, 0x68586FAFu), v));
 }
Exemple #23
0
 public DebuggerProxy(bool3 vec)
 {
     x = vec.x;
     y = vec.y;
     z = vec.z;
 }
Exemple #24
0
 public static bool2 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y)
 {
     return(bool2(
                select_shuffle_component(a, b, x),
                select_shuffle_component(a, b, y)));
 }
 public static bool3x2 bool3x2(bool3 c0, bool3 c1)
 {
     return(new bool3x2(c0, c1));
 }
Exemple #26
0
 public static bool3x3 bool3x3(bool3 c0, bool3 c1, bool3 c2)
 {
     return(new bool3x3(c0, c1, c2));
 }
 public bool3x2(bool3 c0, bool3 c1)
 {
     this.c0 = c0;
     this.c1 = c1;
 }
Exemple #28
0
 public bool3x3(bool v)
 {
     this.c0 = v;
     this.c1 = v;
     this.c2 = v;
 }
 public static uint hash(bool3 v)
 {
     return(csum(select(uint3(0x91475DF7u, 0x55E84827u, 0x90A285BBu), uint3(0x5D19E1D5u, 0xFAAF07DDu, 0x625C45BDu), v)));
 }