feat(wgpu-hal/dx12): add raw_resource method to Buffer (#9364)

This commit is contained in:
羊撅撅 authored and GitHub committed 2026-04-08 17:11:15 +02:00
1 parent a29a8fcf6e
commit 6e37845ff9
1 file changed
+6
+6
View File
@@ -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 {}