File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ private static Memory2D<ColorRgba32> ResizeToHalf(ReadOnlySpan2D<ColorRgba32> pi
171171 var newWidth = Math . Max ( 1 , oldWidth >> 1 ) ;
172172 var newHeight = Math . Max ( 1 , oldHeight >> 1 ) ;
173173
174- // Use a 1D backing array so TryGetMemory() succeeds on all target frameworks
175174 var result = new ColorRgba32 [ newHeight * newWidth ] ;
176175
177176 int ClampW ( int x ) => Math . Max ( 0 , Math . Min ( oldWidth - 1 , x ) ) ;
@@ -200,7 +199,6 @@ private static Memory2D<ColorRgbFloat> ResizeToHalf(ReadOnlySpan2D<ColorRgbFloat
200199 var newWidth = Math . Max ( 1 , oldWidth >> 1 ) ;
201200 var newHeight = Math . Max ( 1 , oldHeight >> 1 ) ;
202201
203- // Use a 1D backing array so TryGetMemory() succeeds on all target frameworks
204202 var result = new ColorRgbFloat [ newHeight * newWidth ] ;
205203
206204 int ClampW ( int x ) => Math . Max ( 0 , Math . Min ( oldWidth - 1 , x ) ) ;
You can’t perform that action at this time.
0 commit comments