Exemple #1
0
 public static float3x4 transpose(float4x3 v)
 {
     return(float3x4(
                v.c0.x, v.c0.y, v.c0.z, v.c0.w,
                v.c1.x, v.c1.y, v.c1.z, v.c1.w,
                v.c2.x, v.c2.y, v.c2.z, v.c2.w));
 }
Exemple #2
0
 public static uint4 hashwide(float4x3 v)
 {
     return((asuint(v.c0) * uint4(0x750FDBF5u, 0x7F3DD499u, 0x52EAAEBBu, 0x4599C793u) +
             asuint(v.c1) * uint4(0x83B5E729u, 0xC267163Fu, 0x67BC9149u, 0xAD7C5EC1u) +
             asuint(v.c2) * uint4(0x822A7D6Du, 0xB492BF15u, 0xD37220E3u, 0x7AA2C2BDu)) + 0xE16BC89Du);
 }
Exemple #3
0
 public static uint hash(float4x3 v)
 {
     return(csum(asuint(v.c0) * uint4(0xC53F4755u, 0x6985C229u, 0xE133B0B3u, 0xC3E0A3B9u) +
                 asuint(v.c1) * uint4(0xFE31134Fu, 0x712A34D7u, 0x9D77A59Bu, 0x4942CA39u) +
                 asuint(v.c2) * uint4(0xB40EC62Du, 0x565ED63Fu, 0x93C30C2Bu, 0xDCAF0351u)) + 0x6E050B01u);
 }
Exemple #4
0
 public static uint4x3 uint4x3(float4x3 v)
 {
     return(new uint4x3(v));
 }
Exemple #5
0
 public uint4x3(float4x3 v)
 {
     this.c0 = (uint4)v.c0;
     this.c1 = (uint4)v.c1;
     this.c2 = (uint4)v.c2;
 }
Exemple #6
0
 public static int4x3 int4x3(float4x3 v)
 {
     return(new int4x3(v));
 }