mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
feat(wgpu-hal/dx12): add raw_resource method to Buffer (#9364)
This commit is contained in:
1 file changed
+6
@@ -957,6 +957,12 @@ pub struct Buffer {
|
||||
allocation: suballocation::Allocation,
|
||||
}
|
||||
|
||||
impl Buffer {
|
||||
pub unsafe fn raw_resource(&self) -> &Direct3D12::ID3D12Resource {
|
||||
&self.resource
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Buffer {}
|
||||
unsafe impl Sync for Buffer {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user