Add raw_adapter method for dx12 hal adapter (#2714)

This commit is contained in:
Xiaopeng Li authored and GitHub committed 2022-06-04 01:20:13 -04:00
1 parent 9e3cd08e59
commit 46420212d7
1 file changed
+4
+4
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,