Add raw_adapter method for dx12 hal adapter (#2714)

This commit is contained in:
Xiaopeng Li 2022-06-04 13:20:13 +08:00 committed by GitHub
parent 9e3cd08e59
commit 46420212d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,