Skip to content

Commit

Permalink
add as_raw for dx12 queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Pabst committed Feb 21, 2025
1 parent 74732fd commit 8143b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wgpu-hal/src/dx12/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,12 @@ pub struct Queue {
temp_lists: Mutex<Vec<Option<Direct3D12::ID3D12CommandList>>>,
}

impl Queue {
pub fn as_raw(&self) -> &Direct3D12::ID3D12CommandQueue {
&self.raw
}
}

unsafe impl Send for Queue {}
unsafe impl Sync for Queue {}

Expand Down

0 comments on commit 8143b95

Please sign in to comment.