File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -462,9 +462,9 @@ pub struct Instance {
462
462
supports_allow_tearing : bool ,
463
463
_lib_dxgi : DxgiLib ,
464
464
flags : wgt:: InstanceFlags ,
465
- options : wgt:: Dx12BackendOptions ,
466
465
memory_budget_thresholds : wgt:: MemoryBudgetThresholds ,
467
466
compiler_container : Arc < shader_compilation:: CompilerContainer > ,
467
+ options : wgt:: Dx12BackendOptions ,
468
468
}
469
469
470
470
impl Instance {
@@ -537,6 +537,15 @@ struct SwapChain {
537
537
present_mode : wgt:: PresentMode ,
538
538
format : wgt:: TextureFormat ,
539
539
size : wgt:: Extent3d ,
540
+ options : wgt:: Dx12BackendOptions ,
541
+ }
542
+
543
+ impl SwapChain {
544
+ /// Returns the waitable handle associated with this swap chain, if any.
545
+ /// Handle is only valid while the swap chain is alive.
546
+ pub unsafe fn waitable_handle ( & self ) -> Option < Foundation :: HANDLE > {
547
+ self . waitable
548
+ }
540
549
}
541
550
542
551
enum SurfaceTarget {
@@ -1415,6 +1424,7 @@ impl crate::Surface for Surface {
1415
1424
present_mode : config. present_mode ,
1416
1425
format : config. format ,
1417
1426
size : config. extent ,
1427
+ options : device. options . clone ( ) ,
1418
1428
} ) ;
1419
1429
1420
1430
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments