mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 15:00:57 +01:00
Dx12 HAL texture: expose raw resource (#6502)
Co-authored-by: Adam Winiarczuk <tsu@liv.tv>
This commit is contained in:
1 parent
47d20d913d
commit
b89a57f8ca
1 file changed
+6
@@ -777,6 +777,12 @@ pub struct Texture {
|
||||
allocation: Option<suballocation::AllocationWrapper>,
|
||||
}
|
||||
|
||||
impl Texture {
|
||||
pub unsafe fn raw_resource(&self) -> &Direct3D12::ID3D12Resource {
|
||||
&self.resource
|
||||
}
|
||||
}
|
||||
|
||||
impl crate::DynTexture for Texture {}
|
||||
impl crate::DynSurfaceTexture for Texture {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user