Trait windows::Win32::Graphics::Direct3D12::ID3D12Resource_Impl
pub trait ID3D12Resource_Impl: Sized + ID3D12Pageable_Impl {
// Required methods
fn Map(
&self,
subresource: u32,
preadrange: *const D3D12_RANGE,
ppdata: *mut *mut c_void,
) -> Result<()>;
fn Unmap(&self, subresource: u32, pwrittenrange: *const D3D12_RANGE);
fn GetDesc(&self) -> D3D12_RESOURCE_DESC;
fn GetGPUVirtualAddress(&self) -> u64;
fn WriteToSubresource(
&self,
dstsubresource: u32,
pdstbox: *const D3D12_BOX,
psrcdata: *const c_void,
srcrowpitch: u32,
srcdepthpitch: u32,
) -> Result<()>;
fn ReadFromSubresource(
&self,
pdstdata: *mut c_void,
dstrowpitch: u32,
dstdepthpitch: u32,
srcsubresource: u32,
psrcbox: *const D3D12_BOX,
) -> Result<()>;
fn GetHeapProperties(
&self,
pheapproperties: *mut D3D12_HEAP_PROPERTIES,
pheapflags: *mut D3D12_HEAP_FLAGS,
) -> Result<()>;
}
Required Methods§
fn Map( &self, subresource: u32, preadrange: *const D3D12_RANGE, ppdata: *mut *mut c_void, ) -> Result<()>
fn Unmap(&self, subresource: u32, pwrittenrange: *const D3D12_RANGE)
fn GetDesc(&self) -> D3D12_RESOURCE_DESC
fn GetGPUVirtualAddress(&self) -> u64
fn WriteToSubresource( &self, dstsubresource: u32, pdstbox: *const D3D12_BOX, psrcdata: *const c_void, srcrowpitch: u32, srcdepthpitch: u32, ) -> Result<()>
fn ReadFromSubresource( &self, pdstdata: *mut c_void, dstrowpitch: u32, dstdepthpitch: u32, srcsubresource: u32, psrcbox: *const D3D12_BOX, ) -> Result<()>
fn GetHeapProperties( &self, pheapproperties: *mut D3D12_HEAP_PROPERTIES, pheapflags: *mut D3D12_HEAP_FLAGS, ) -> Result<()>
Object Safety§
This trait is not object safe.