Esempio n. 1
0
 public static uint hash(int4x2 v)
 {
     return(csum(asuint(v.c0) * uint4(0xFAAF07DDu, 0x625C45BDu, 0xC9F27FCBu, 0x6D2523B1u) +
                 asuint(v.c1) * uint4(0x6E2BF6A9u, 0xCC74B3B7u, 0x83B58237u, 0x833E3E29u)) + 0xA9D919BFu);
 }
Esempio n. 2
0
 public static uint4 hashwide(int4x2 v)
 {
     return((asuint(v.c0) * uint4(0xC3EC1D97u, 0xB8B208C7u, 0x5D3ED947u, 0x4473BBB1u) +
             asuint(v.c1) * uint4(0xCBA11D5Fu, 0x685835CFu, 0xC3D32AE1u, 0xB966942Fu)) + 0xFE9856B3u);
 }
Esempio n. 3
0
 public static int2x4 transpose(int4x2 v)
 {
     return(int2x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w));
 }
Esempio n. 4
0
 public uint4x2(int4x2 v)
 {
     this.c0 = (uint4)v.c0;
     this.c1 = (uint4)v.c1;
 }
Esempio n. 5
0
 public static uint4x2 uint4x2(int4x2 v)
 {
     return(new uint4x2(v));
 }
Esempio n. 6
0
 public float4x2(int4x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Esempio n. 7
0
 public static float4x2 float4x2(int4x2 v)
 {
     return(new float4x2(v));
 }