Struct gpu_allocator::d3d12::winapi_d3d12::ID3D12Resource
source · #[repr(C)]pub struct ID3D12Resource {
pub lpVtbl: *const ID3D12ResourceVtbl,
}
Fields§
§lpVtbl: *const ID3D12ResourceVtbl
Implementations§
source§impl ID3D12Resource
impl ID3D12Resource
pub unsafe fn Map( &self, Subresource: u32, pReadRange: *const D3D12_RANGE, ppData: *mut *mut c_void ) -> i32
pub unsafe fn Unmap(&self, Subresource: u32, pWrittenRange: *const D3D12_RANGE)
pub unsafe fn GetDesc(&self) -> D3D12_RESOURCE_DESC
pub unsafe fn GetGPUVirtualAddress(&self) -> u64
pub unsafe fn WriteToSubresource( &self, DstSubresource: u32, pDstBox: *const D3D12_BOX, pSrcData: *const c_void, SrcRowPitch: u32, SrcDepthPitch: u32 ) -> i32
pub unsafe fn ReadFromSubresource( &self, pDstData: *mut c_void, DstRowPitch: u32, DstDepthPitch: u32, SrcSubresource: u32, pSrcBox: *const D3D12_BOX ) -> i32
pub unsafe fn GetHeapProperties( &self, pHeapProperties: *mut D3D12_HEAP_PROPERTIES, pHeapFlags: *mut u32 ) -> i32
Methods from Deref<Target = ID3D12DeviceChild>§
Methods from Deref<Target = ID3D12Object>§
pub unsafe fn GetPrivateData( &self, guid: *const GUID, pDataSize: *mut u32, pData: *mut c_void ) -> i32
pub unsafe fn SetPrivateData( &self, guid: *const GUID, DataSize: u32, pData: *const c_void ) -> i32
pub unsafe fn SetPrivateDataInterface( &self, guid: *const GUID, pData: *const IUnknown ) -> i32
pub unsafe fn SetName(&self, Name: *const u16) -> i32
Methods from Deref<Target = IUnknown>§
pub unsafe fn QueryInterface( &self, riid: *const GUID, ppvObject: *mut *mut c_void ) -> i32
pub unsafe fn AddRef(&self) -> u32
pub unsafe fn Release(&self) -> u32
Trait Implementations§
source§impl Deref for ID3D12Resource
impl Deref for ID3D12Resource
§type Target = ID3D12Pageable
type Target = ID3D12Pageable
The resulting type after dereferencing.
source§fn deref(&self) -> &ID3D12Pageable
fn deref(&self) -> &ID3D12Pageable
Dereferences the value.
source§impl ToWinapi<ID3D12Resource> for ID3D12Resource
impl ToWinapi<ID3D12Resource> for ID3D12Resource
fn as_winapi(&self) -> *const ID3D12Resource
fn as_winapi_mut(&mut self) -> *mut ID3D12Resource
Auto Trait Implementations§
impl RefUnwindSafe for ID3D12Resource
impl !Send for ID3D12Resource
impl !Sync for ID3D12Resource
impl Unpin for ID3D12Resource
impl UnwindSafe for ID3D12Resource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more