示例#1
0
 public static uint2 hashwide(half2 v)
 {
     return((uint2(v.x.value, v.y.value) * uint2(0xEBD0D005u, 0x91475DF7u)) + 0x55E84827u);
 }
示例#2
0
 public static half2 half2(half2 xy)
 {
     return(new half2(xy));
 }
示例#3
0
 public static uint hash(half2 v)
 {
     return(csum(uint2(v.x.value, v.y.value) * uint2(0x6E624EB7u, 0x7383ED49u)) + 0xDD49C23Bu);
 }
示例#4
0
 public half3(half2 xy, half z)
 {
     this.x = xy.x;
     this.y = xy.y;
     this.z = z;
 }
示例#5
0
 public DebuggerProxy(half2 v)
 {
     x = v.x;
     y = v.y;
 }
示例#6
0
 public static half3 half3(half2 xy, half z)
 {
     return(new half3(xy, z));
 }
示例#7
0
 public half3(half x, half2 yz)
 {
     this.x = x;
     this.y = yz.x;
     this.z = yz.y;
 }
示例#8
0
 public static half3 half3(half x, half2 yz)
 {
     return(new half3(x, yz));
 }
示例#9
0
 public static double2 double2(half2 v)
 {
     return(new double2(v));
 }
示例#10
0
 public double2(half2 v)
 {
     this.x = v.x;
     this.y = v.y;
 }
示例#11
0
 public static float2 float2(half2 v)
 {
     return(new float2(v));
 }
示例#12
0
 public float2(half2 v)
 {
     this.x = v.x;
     this.y = v.y;
 }