コード例 #1
0
 public int4x2(bool4x2 v)
 {
     this.c0 = math.select(new int4(0), new int4(1), v.c0);
     this.c1 = math.select(new int4(0), new int4(1), v.c1);
 }
コード例 #2
0
 public static int4x2 int4x2(bool4x2 v)
 {
     return(new int4x2(v));
 }
コード例 #3
0
 public uint4x2(bool4x2 v)
 {
     this.c0 = math.select(new uint4(0u), new uint4(1u), v.c0);
     this.c1 = math.select(new uint4(0u), new uint4(1u), v.c1);
 }
コード例 #4
0
 public static uint4x2 uint4x2(bool4x2 v)
 {
     return(new uint4x2(v));
 }
コード例 #5
0
 public float4x2(bool4x2 v)
 {
     this.c0 = math.select(new float4(sfloat.Zero), new float4(sfloat.One), v.c0);
     this.c1 = math.select(new float4(sfloat.Zero), new float4(sfloat.One), v.c1);
 }
コード例 #6
0
 public static float4x2 float4x2(bool4x2 v)
 {
     return(new float4x2(v));
 }