Skip to content

Commit 208fe4c

Browse files
authored
Expose the DxgiAdapter in the Hal adapter (#7852)
1 parent 1280819 commit 208fe4c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Bottom level categories:
8585
#### DX12
8686

8787
- Get `vertex_index` & `instance_index` builtins working for indirect draws. By @teoxoy in [#7535](https://github.com/gfx-rs/wgpu/pull/7535)
88+
- Added `wgpu_hal::dx12::Adapter::as_raw()`. By @tronical in [##7852](https://github.com/gfx-rs/wgpu/pull/7852)
8889

8990
#### Vulkan
9091

wgpu-hal/src/dx12/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,12 @@ pub struct Adapter {
604604
unsafe impl Send for Adapter {}
605605
unsafe impl Sync for Adapter {}
606606

607+
impl Adapter {
608+
pub fn as_raw(&self) -> &Dxgi::IDXGIAdapter3 {
609+
&self.raw
610+
}
611+
}
612+
607613
struct Event(pub Foundation::HANDLE);
608614
impl Event {
609615
pub fn create(manual_reset: bool, initial_state: bool) -> Result<Self, crate::DeviceError> {

0 commit comments

Comments
 (0)