File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -2315,6 +2315,36 @@ pub struct CopyExtent {
2315
2315
pub depth : u32 ,
2316
2316
}
2317
2317
2318
+ impl From < wgt:: Extent3d > for CopyExtent {
2319
+ fn from ( value : wgt:: Extent3d ) -> Self {
2320
+ let wgt:: Extent3d {
2321
+ width,
2322
+ height,
2323
+ depth_or_array_layers,
2324
+ } = value;
2325
+ Self {
2326
+ width,
2327
+ height,
2328
+ depth : depth_or_array_layers,
2329
+ }
2330
+ }
2331
+ }
2332
+
2333
+ impl From < CopyExtent > for wgt:: Extent3d {
2334
+ fn from ( value : CopyExtent ) -> Self {
2335
+ let CopyExtent {
2336
+ width,
2337
+ height,
2338
+ depth,
2339
+ } = value;
2340
+ Self {
2341
+ width,
2342
+ height,
2343
+ depth_or_array_layers : depth,
2344
+ }
2345
+ }
2346
+ }
2347
+
2318
2348
#[ derive( Clone , Debug ) ]
2319
2349
pub struct TextureCopy {
2320
2350
pub src_base : TextureCopyBase ,
You can’t perform that action at this time.
0 commit comments