Skip to content

Commit

Permalink
Add raw_adapter method for dx12 hal adapter (#2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopengli89 authored Jun 4, 2022
1 parent 9e3cd08 commit 4642021
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wgpu-hal/src/dx12/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ impl super::Adapter {
}
}

pub fn raw_adapter(&self) -> &native::DxgiAdapter {
&self.raw
}

#[allow(trivial_casts)]
pub(super) fn expose(
adapter: native::DxgiAdapter,
Expand Down

0 comments on commit 4642021

Please sign in to comment.