diff --git a/wgpu-hal/src/dx12/mod.rs b/wgpu-hal/src/dx12/mod.rs index 92c009b9c..bc9f0db15 100644 --- a/wgpu-hal/src/dx12/mod.rs +++ b/wgpu-hal/src/dx12/mod.rs @@ -777,6 +777,12 @@ pub struct Texture { allocation: Option, } +impl Texture { + pub unsafe fn raw_resource(&self) -> &Direct3D12::ID3D12Resource { + &self.resource + } +} + impl crate::DynTexture for Texture {} impl crate::DynSurfaceTexture for Texture {}