Dx12 HAL texture: expose raw resource (#6502)

Co-authored-by: Adam Winiarczuk <tsu@liv.tv>
This commit is contained in:
Adam Winiarczuk 2024-11-08 18:54:10 +01:00 committed by GitHub
parent 47d20d913d
commit b89a57f8ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {}