Skip to content

Commit

Permalink
Add raw_adapter method for dx12 hal adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopengli89 committed Jun 2, 2022
1 parent 75db572 commit ea42023
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 ea42023

Please sign in to comment.