mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Expose the DxgiAdapter in the Hal adapter (#7852)
This commit is contained in:
parent
12808193fe
commit
208fe4c23d
@ -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
|
||||
|
||||
|
||||
@ -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> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user