Exemple #1
0
 public static int4x2 int4x2(uint4x2 v)
 {
     return(new int4x2(v));
 }
Exemple #2
0
 public int4x2(uint4x2 v)
 {
     this.c0 = (int4)v.c0;
     this.c1 = (int4)v.c1;
 }
Exemple #3
0
 public static uint4 hashwide(uint4x2 v)
 {
     return((v.c0 * uint4(0xE3600729u, 0x5F17300Du, 0x670D6809u, 0x7AF32C49u) +
             v.c1 * uint4(0xAE131389u, 0x5D1B165Bu, 0x87096CD7u, 0x4C7F6DD1u)) + 0x4822A3E9u);
 }
Exemple #4
0
 public static uint hash(uint4x2 v)
 {
     return(csum(v.c0 * uint4(0xFA3A3285u, 0xAD55999Du, 0xDCDD5341u, 0x94DDD769u) +
                 v.c1 * uint4(0xA1E92D39u, 0x4583C801u, 0x9536A0F5u, 0xAF816615u)) + 0x9AF8D62Du);
 }
Exemple #5
0
 public static uint2x4 transpose(uint4x2 v)
 {
     return(uint2x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w));
 }
Exemple #6
0
 public float4x2(uint4x2 v)
 {
     this.c0 = v.c0;
     this.c1 = v.c1;
 }
Exemple #7
0
 public static float4x2 float4x2(uint4x2 v)
 {
     return(new float4x2(v));
 }