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

source

pub unsafe fn Map( &self, Subresource: u32, pReadRange: *const D3D12_RANGE, ppData: *mut *mut c_void, ) -> i32

source

pub unsafe fn Unmap(&self, Subresource: u32, pWrittenRange: *const D3D12_RANGE)

source

pub unsafe fn GetDesc(&self) -> D3D12_RESOURCE_DESC

source

pub unsafe fn GetGPUVirtualAddress(&self) -> u64

source

pub unsafe fn WriteToSubresource( &self, DstSubresource: u32, pDstBox: *const D3D12_BOX, pSrcData: *const c_void, SrcRowPitch: u32, SrcDepthPitch: u32, ) -> i32

source

pub unsafe fn ReadFromSubresource( &self, pDstData: *mut c_void, DstRowPitch: u32, DstDepthPitch: u32, SrcSubresource: u32, pSrcBox: *const D3D12_BOX, ) -> i32

source

pub unsafe fn GetHeapProperties( &self, pHeapProperties: *mut D3D12_HEAP_PROPERTIES, pHeapFlags: *mut u32, ) -> i32

Methods from Deref<Target = ID3D12DeviceChild>§

source

pub unsafe fn GetDevice( &self, riid: *const GUID, ppvDevice: *mut *mut c_void, ) -> i32

Methods from Deref<Target = ID3D12Object>§

source

pub unsafe fn GetPrivateData( &self, guid: *const GUID, pDataSize: *mut u32, pData: *mut c_void, ) -> i32

source

pub unsafe fn SetPrivateData( &self, guid: *const GUID, DataSize: u32, pData: *const c_void, ) -> i32

source

pub unsafe fn SetPrivateDataInterface( &self, guid: *const GUID, pData: *const IUnknown, ) -> i32

source

pub unsafe fn SetName(&self, Name: *const u16) -> i32

Methods from Deref<Target = IUnknown>§

source

pub unsafe fn QueryInterface( &self, riid: *const GUID, ppvObject: *mut *mut c_void, ) -> i32

source

pub unsafe fn AddRef(&self) -> u32

source

pub unsafe fn Release(&self) -> u32

Trait Implementations§

source§

impl Deref for ID3D12Resource

§

type Target = ID3D12Pageable

The resulting type after dereferencing.
source§

fn deref(&self) -> &ID3D12Pageable

Dereferences the value.
source§

impl Interface for ID3D12Resource

source§

impl ToWinapi<ID3D12Resource> for ID3D12Resource

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.