File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ Bottom level categories:
124
124
#### D3D12
125
125
126
126
- Remove the need for dxil.dll. By @teoxoy in [ #7566 ] ( https://github.com/gfx-rs/wgpu/pull/7566 )
127
+ - Ability to get the raw ` IDXGIFactory4 ` from ` Instance ` . By @MendyBerger in [ #7827 ] ( https://github.com/gfx-rs/wgpu/pull/7827 )
127
128
128
129
#### Vulkan
129
130
Original file line number Diff line number Diff line change @@ -465,6 +465,11 @@ pub struct Instance {
465
465
}
466
466
467
467
impl Instance {
468
+ /// Get the raw DXGI factory associated with this instance.
469
+ pub unsafe fn raw_factory4 ( & self ) -> & Dxgi :: IDXGIFactory4 {
470
+ self . factory . deref ( )
471
+ }
472
+
468
473
pub unsafe fn create_surface_from_visual ( & self , visual : * mut ffi:: c_void ) -> Surface {
469
474
let visual = unsafe { DirectComposition :: IDCompositionVisual :: from_raw_borrowed ( & visual) }
470
475
. expect ( "COM pointer should not be NULL" ) ;
You can’t perform that action at this time.
0 commit comments