Expose the DxgiAdapter in the Hal adapter (#7852)

This commit is contained in:
Simon Hausmann authored and GitHub committed 2025-06-26 16:34:59 -04:00
1 parent 12808193fe
commit 208fe4c23d
2 files changed
+7

No files matched your search

+1
View File
@@ -85,6 +85,7 @@ Bottom level categories:
#### DX12
- Get `vertex_index` & `instance_index` builtins working for indirect draws. By @teoxoy in [#7535](https://github.com/gfx-rs/wgpu/pull/7535)
- Added `wgpu_hal::dx12::Adapter::as_raw()`. By @tronical in [##7852](https://github.com/gfx-rs/wgpu/pull/7852)
#### Vulkan
+6
View File
@@ -604,6 +604,12 @@ pub struct Adapter {
unsafe impl Send for Adapter {}
unsafe impl Sync for Adapter {}
impl Adapter {
pub fn as_raw(&self) -> &Dxgi::IDXGIAdapter3 {
&self.raw
}
}
struct Event(pub Foundation::HANDLE);
impl Event {
pub fn create(manual_reset: bool, initial_state: bool) -> Result<Self, crate::DeviceError> {