#[repr(C)]pub struct ID3D12Device {
pub lpVtbl: *const ID3D12DeviceVtbl,
}
Fields§
§lpVtbl: *const ID3D12DeviceVtbl
Implementations§
Source§impl ID3D12Device
impl ID3D12Device
pub unsafe fn GetNodeCount(&self) -> UINT
pub unsafe fn CreateCommandQueue( &self, pDesc: *const D3D12_COMMAND_QUEUE_DESC, riid: REFGUID, ppCommandQueue: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateCommandAllocator( &self, type_: D3D12_COMMAND_LIST_TYPE, riid: REFGUID, ppCommandAllocator: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateGraphicsPipelineState( &self, pDesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, riid: REFGUID, ppPipelineState: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateComputePipelineState( &self, pDesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, riid: REFGUID, ppPipelineState: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateCommandList( &self, nodeMask: UINT, type_: D3D12_COMMAND_LIST_TYPE, pCommandAllocator: *mut ID3D12CommandAllocator, pInitialState: *mut ID3D12PipelineState, riid: REFGUID, ppCommandList: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CheckFeatureSupport( &self, Feature: D3D12_FEATURE, pFeatureSupportData: *mut c_void, FeatureSupportDataSize: UINT, ) -> HRESULT
pub unsafe fn CreateDescriptorHeap( &self, pDescriptorHeapDesc: *const D3D12_DESCRIPTOR_HEAP_DESC, riid: REFGUID, ppvHeap: *mut *mut c_void, ) -> HRESULT
pub unsafe fn GetDescriptorHandleIncrementSize( &self, DescriptorHeapType: D3D12_DESCRIPTOR_HEAP_TYPE, ) -> UINT
pub unsafe fn CreateRootSignature( &self, nodeMask: UINT, pBlobWithRootSignature: *const c_void, blobLengthInBytes: SIZE_T, riid: REFGUID, ppvRootSignature: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateConstantBufferView( &self, pDesc: *const D3D12_CONSTANT_BUFFER_VIEW_DESC, DestDescriptor: D3D12_CPU_DESCRIPTOR_HANDLE, )
pub unsafe fn CreateShaderResourceView( &self, pResource: *mut ID3D12Resource, pDesc: *const D3D12_SHADER_RESOURCE_VIEW_DESC, DestDescriptor: D3D12_CPU_DESCRIPTOR_HANDLE, )
pub unsafe fn CreateUnorderedAccessView( &self, pResource: *mut ID3D12Resource, pCounterResource: *mut ID3D12Resource, pDesc: *const D3D12_UNORDERED_ACCESS_VIEW_DESC, DestDescriptor: D3D12_CPU_DESCRIPTOR_HANDLE, )
pub unsafe fn CreateRenderTargetView( &self, pResource: *mut ID3D12Resource, pDesc: *const D3D12_RENDER_TARGET_VIEW_DESC, DestDescriptor: D3D12_CPU_DESCRIPTOR_HANDLE, )
pub unsafe fn CreateDepthStencilView( &self, pResource: *mut ID3D12Resource, pDesc: *const D3D12_DEPTH_STENCIL_VIEW_DESC, DestDescriptor: D3D12_CPU_DESCRIPTOR_HANDLE, )
pub unsafe fn CreateSampler( &self, pDesc: *const D3D12_SAMPLER_DESC, DestDescriptor: D3D12_CPU_DESCRIPTOR_HANDLE, )
pub unsafe fn CopyDescriptors( &self, NumDestDescriptorRanges: UINT, pDestDescriptorRangeStarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, pDestDescriptorRangeSizes: *const UINT, NumSrcDescriptorRanges: UINT, pSrcDescriptorRangeStarts: *const D3D12_CPU_DESCRIPTOR_HANDLE, pSrcDescriptorRangeSizes: *const UINT, DescriptorHeapsType: D3D12_DESCRIPTOR_HEAP_TYPE, )
pub unsafe fn CopyDescriptorsSimple( &self, NumDescriptors: UINT, DestDescriptorRangeStart: D3D12_CPU_DESCRIPTOR_HANDLE, SrcDescriptorRangeStart: D3D12_CPU_DESCRIPTOR_HANDLE, DescriptorHeapsType: D3D12_DESCRIPTOR_HEAP_TYPE, )
pub unsafe fn GetResourceAllocationInfo( &self, visibleMask: UINT, numResourceDescs: UINT, pResourceDescs: *const D3D12_RESOURCE_DESC, ) -> D3D12_RESOURCE_ALLOCATION_INFO
pub unsafe fn GetCustomHeapProperties( &self, nodeMask: UINT, heapType: D3D12_HEAP_TYPE, ) -> D3D12_HEAP_PROPERTIES
pub unsafe fn CreateCommittedResource( &self, pHeapProperties: *const D3D12_HEAP_PROPERTIES, HeapFlags: D3D12_HEAP_FLAGS, pResourceDesc: *const D3D12_RESOURCE_DESC, InitialResourceState: D3D12_RESOURCE_STATES, pOptimizedClearValue: *const D3D12_CLEAR_VALUE, riidResource: REFGUID, ppvResource: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateHeap( &self, pDesc: *const D3D12_HEAP_DESC, riid: REFGUID, ppvHeap: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreatePlacedResource( &self, pHeap: *mut ID3D12Heap, HeapOffset: UINT64, pDesc: *const D3D12_RESOURCE_DESC, InitialState: D3D12_RESOURCE_STATES, pOptimizedClearValue: *const D3D12_CLEAR_VALUE, riid: REFGUID, ppvResource: *mut *mut c_void, ) -> HRESULT
pub unsafe fn CreateReservedResource( &self, pDesc: *const D3D12_RESOURCE_DESC, InitialState: D3D12_RESOURCE_STATES, pOptimizedClearValue: *const D3D12_CLEAR_VALUE, riid: REFGUID, ppvResource: *mut *mut c_void, ) -> HRESULT
pub unsafe fn MakeResident( &self, NumObjects: UINT, ppObjects: *mut *mut ID3D12Pageable, ) -> HRESULT
pub unsafe fn Evict( &self, NumObjects: UINT, ppObjects: *mut *mut ID3D12Pageable, ) -> HRESULT
pub unsafe fn CreateFence( &self, InitialValue: UINT64, Flags: D3D12_FENCE_FLAGS, riid: REFGUID, ppFence: *mut *mut c_void, ) -> HRESULT
pub unsafe fn GetDeviceRemovedReason(&self) -> HRESULT
pub unsafe fn GetCopyableFootprints( &self, pResourceDesc: *const D3D12_RESOURCE_DESC, FirstSubresource: UINT, NumSubresources: UINT, BaseOffset: UINT64, pLayouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, pNumRows: *mut UINT, pRowSizeInBytes: *mut UINT64, pTotalBytes: *mut UINT64, )
pub unsafe fn CreateQueryHeap( &self, pDesc: *const D3D12_QUERY_HEAP_DESC, riid: REFGUID, ppvHeap: *mut *mut c_void, ) -> HRESULT
pub unsafe fn SetStablePowerState(&self, Enable: BOOL) -> HRESULT
pub unsafe fn CreateCommandSignature( &self, pDesc: *const D3D12_COMMAND_SIGNATURE_DESC, pRootSignature: *mut ID3D12RootSignature, riid: REFGUID, ppvCommandSignature: *mut *mut c_void, ) -> HRESULT
pub unsafe fn GetResourceTiling( &self, pTiledResource: *mut ID3D12Resource, pNumTilesForEntireResource: *mut UINT, pPackedMipDesc: *mut D3D12_PACKED_MIP_INFO, pStandardTileShapeForNonPackedMips: *mut D3D12_TILE_SHAPE, pNumSubresourceTilings: *mut UINT, FirstSubresourceTilingToGet: UINT, pSubresourceTilingsForNonPackedMips: *mut D3D12_SUBRESOURCE_TILING, )
pub unsafe fn GetAdapterLuid(&self) -> LUID
Methods from Deref<Target = ID3D12Object>§
pub unsafe fn GetPrivateData( &self, guid: REFGUID, pDataSize: *mut UINT, pData: *mut c_void, ) -> HRESULT
pub unsafe fn SetPrivateData( &self, guid: REFGUID, DataSize: UINT, pData: *const c_void, ) -> HRESULT
pub unsafe fn SetPrivateDataInterface( &self, guid: REFGUID, pData: *const IUnknown, ) -> HRESULT
pub unsafe fn SetName(&self, Name: LPCWSTR) -> HRESULT
Trait Implementations§
Source§impl Deref for ID3D12Device
impl Deref for ID3D12Device
Source§type Target = ID3D12Object
type Target = ID3D12Object
The resulting type after dereferencing.
Source§fn deref(&self) -> &ID3D12Object
fn deref(&self) -> &ID3D12Object
Dereferences the value.
Auto Trait Implementations§
impl Freeze for ID3D12Device
impl RefUnwindSafe for ID3D12Device
impl !Send for ID3D12Device
impl !Sync for ID3D12Device
impl Unpin for ID3D12Device
impl UnwindSafe for ID3D12Device
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