mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
Dx12 HAL texture: expose raw resource (#6502)
Co-authored-by: Adam Winiarczuk <tsu@liv.tv>
This commit is contained in:
parent
47d20d913d
commit
b89a57f8ca
@ -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 {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user