@@ -65,30 +65,42 @@ public static Tensor4<T> CreateTensor4<T>(long sizeX, long sizeY, long sizeZ, lo
65
65
{ ( typeof ( byte ) , typeof ( byte ) ) , v => ( ( Tensor4 < byte > ) v ) . CopyWindow ( ) } ,
66
66
{ ( typeof ( byte ) , typeof ( ushort ) ) , v => ( ( Tensor4 < byte > ) v ) . ToUShortColor ( ) } ,
67
67
{ ( typeof ( byte ) , typeof ( uint ) ) , v => ( ( Tensor4 < byte > ) v ) . ToUIntColor ( ) } ,
68
+ { ( typeof ( byte ) , typeof ( Half ) ) , v => ( ( Tensor4 < byte > ) v ) . ToHalfColor ( ) } ,
68
69
{ ( typeof ( byte ) , typeof ( float ) ) , v => ( ( Tensor4 < byte > ) v ) . ToFloatColor ( ) } ,
69
70
{ ( typeof ( byte ) , typeof ( double ) ) , v => ( ( Tensor4 < byte > ) v ) . ToDoubleColor ( ) } ,
70
71
71
72
{ ( typeof ( ushort ) , typeof ( byte ) ) , v => ( ( Tensor4 < ushort > ) v ) . ToByteColor ( ) } ,
72
73
{ ( typeof ( ushort ) , typeof ( ushort ) ) , v => ( ( Tensor4 < ushort > ) v ) . CopyWindow ( ) } ,
73
74
{ ( typeof ( ushort ) , typeof ( uint ) ) , v => ( ( Tensor4 < ushort > ) v ) . ToUIntColor ( ) } ,
75
+ { ( typeof ( ushort ) , typeof ( Half ) ) , v => ( ( Tensor4 < ushort > ) v ) . ToHalfColor ( ) } ,
74
76
{ ( typeof ( ushort ) , typeof ( float ) ) , v => ( ( Tensor4 < ushort > ) v ) . ToFloatColor ( ) } ,
75
77
{ ( typeof ( ushort ) , typeof ( double ) ) , v => ( ( Tensor4 < ushort > ) v ) . ToDoubleColor ( ) } ,
76
-
78
+
77
79
{ ( typeof ( uint ) , typeof ( byte ) ) , v => ( ( Tensor4 < uint > ) v ) . ToByteColor ( ) } ,
78
80
{ ( typeof ( uint ) , typeof ( ushort ) ) , v => ( ( Tensor4 < uint > ) v ) . ToUShortColor ( ) } ,
79
81
{ ( typeof ( uint ) , typeof ( uint ) ) , v => ( ( Tensor4 < uint > ) v ) . CopyWindow ( ) } ,
82
+ { ( typeof ( uint ) , typeof ( Half ) ) , v => ( ( Tensor4 < uint > ) v ) . ToHalfColor ( ) } ,
80
83
{ ( typeof ( uint ) , typeof ( float ) ) , v => ( ( Tensor4 < uint > ) v ) . ToFloatColor ( ) } ,
81
84
{ ( typeof ( uint ) , typeof ( double ) ) , v => ( ( Tensor4 < uint > ) v ) . ToDoubleColor ( ) } ,
82
85
86
+ { ( typeof ( Half ) , typeof ( byte ) ) , v => ( ( Tensor4 < Half > ) v ) . ToByteColor ( ) } ,
87
+ { ( typeof ( Half ) , typeof ( ushort ) ) , v => ( ( Tensor4 < Half > ) v ) . ToUShortColor ( ) } ,
88
+ { ( typeof ( Half ) , typeof ( uint ) ) , v => ( ( Tensor4 < Half > ) v ) . ToUIntColor ( ) } ,
89
+ { ( typeof ( Half ) , typeof ( Half ) ) , v => ( ( Tensor4 < Half > ) v ) . CopyWindow ( ) } ,
90
+ { ( typeof ( Half ) , typeof ( float ) ) , v => ( ( Tensor4 < Half > ) v ) . ToFloatColor ( ) } ,
91
+ { ( typeof ( Half ) , typeof ( double ) ) , v => ( ( Tensor4 < Half > ) v ) . ToDoubleColor ( ) } ,
92
+
83
93
{ ( typeof ( float ) , typeof ( byte ) ) , v => ( ( Tensor4 < float > ) v ) . ToByteColor ( ) } ,
84
94
{ ( typeof ( float ) , typeof ( ushort ) ) , v => ( ( Tensor4 < float > ) v ) . ToUShortColor ( ) } ,
85
95
{ ( typeof ( float ) , typeof ( uint ) ) , v => ( ( Tensor4 < float > ) v ) . ToUIntColor ( ) } ,
96
+ { ( typeof ( float ) , typeof ( Half ) ) , v => ( ( Tensor4 < float > ) v ) . ToHalfColor ( ) } ,
86
97
{ ( typeof ( float ) , typeof ( float ) ) , v => ( ( Tensor4 < float > ) v ) . CopyWindow ( ) } ,
87
98
{ ( typeof ( float ) , typeof ( double ) ) , v => ( ( Tensor4 < float > ) v ) . ToDoubleColor ( ) } ,
88
99
89
100
{ ( typeof ( double ) , typeof ( byte ) ) , v => ( ( Tensor4 < double > ) v ) . ToByteColor ( ) } ,
90
101
{ ( typeof ( double ) , typeof ( ushort ) ) , v => ( ( Tensor4 < double > ) v ) . ToUShortColor ( ) } ,
91
102
{ ( typeof ( double ) , typeof ( uint ) ) , v => ( ( Tensor4 < double > ) v ) . ToUIntColor ( ) } ,
103
+ { ( typeof ( double ) , typeof ( Half ) ) , v => ( ( Tensor4 < double > ) v ) . ToHalfColor ( ) } ,
92
104
{ ( typeof ( double ) , typeof ( float ) ) , v => ( ( Tensor4 < double > ) v ) . ToFloatColor ( ) } ,
93
105
{ ( typeof ( double ) , typeof ( double ) ) , v => ( ( Tensor4 < double > ) v ) . CopyWindow ( ) } ,
94
106
} ;
0 commit comments