Struct gpu_allocator::d3d12::winapi_d3d12::ID3D12DeviceVtbl

source ·
#[repr(C)]
pub struct ID3D12DeviceVtbl {
Show 38 fields pub parent: ID3D12ObjectVtbl, pub GetNodeCount: unsafe extern "system" fn(_: *mut ID3D12Device) -> u32, pub CreateCommandQueue: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_COMMAND_QUEUE_DESC, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateCommandAllocator: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateGraphicsPipelineState: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateComputePipelineState: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateCommandList: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: u32, _: *mut ID3D12CommandAllocator, _: *mut ID3D12PipelineState, _: *const GUID, _: *mut *mut c_void) -> i32, pub CheckFeatureSupport: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *mut c_void, _: u32) -> i32, pub CreateDescriptorHeap: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_DESCRIPTOR_HEAP_DESC, _: *const GUID, _: *mut *mut c_void) -> i32, pub GetDescriptorHandleIncrementSize: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32) -> u32, pub CreateRootSignature: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *const c_void, _: usize, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateConstantBufferView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_CONSTANT_BUFFER_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE), pub CreateShaderResourceView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *const D3D12_SHADER_RESOURCE_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE), pub CreateUnorderedAccessView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *mut ID3D12Resource, _: *const D3D12_UNORDERED_ACCESS_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE), pub CreateRenderTargetView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *const D3D12_RENDER_TARGET_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE), pub CreateDepthStencilView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *const D3D12_DEPTH_STENCIL_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE), pub CreateSampler: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_SAMPLER_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE), pub CopyDescriptors: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *const D3D12_CPU_DESCRIPTOR_HANDLE, _: *const u32, _: u32, _: *const D3D12_CPU_DESCRIPTOR_HANDLE, _: *const u32, _: u32), pub CopyDescriptorsSimple: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: D3D12_CPU_DESCRIPTOR_HANDLE, _: D3D12_CPU_DESCRIPTOR_HANDLE, _: u32), pub GetResourceAllocationInfo: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut D3D12_RESOURCE_ALLOCATION_INFO, _: u32, _: u32, _: *const D3D12_RESOURCE_DESC) -> *mut D3D12_RESOURCE_ALLOCATION_INFO, pub GetCustomHeapProperties: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut D3D12_HEAP_PROPERTIES, _: u32, _: u32) -> *mut D3D12_HEAP_PROPERTIES, pub CreateCommittedResource: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_HEAP_PROPERTIES, _: u32, _: *const D3D12_RESOURCE_DESC, _: u32, _: *const D3D12_CLEAR_VALUE, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateHeap: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_HEAP_DESC, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreatePlacedResource: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Heap, _: u64, _: *const D3D12_RESOURCE_DESC, _: u32, _: *const D3D12_CLEAR_VALUE, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateReservedResource: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_RESOURCE_DESC, _: u32, _: *const D3D12_CLEAR_VALUE, _: *const GUID, _: *mut *mut c_void) -> i32, pub CreateSharedHandle: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12DeviceChild, _: *const SECURITY_ATTRIBUTES, _: u32, _: *const u16, _: *mut *mut c_void) -> i32, pub OpenSharedHandle: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut c_void, _: *const GUID, _: *mut *mut c_void) -> i32, pub OpenSharedHandleByName: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const u16, _: u32, _: *mut *mut c_void) -> i32, pub MakeResident: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *mut *mut ID3D12Pageable) -> i32, pub Evict: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *mut *mut ID3D12Pageable) -> i32, pub CreateFence: unsafe extern "system" fn(_: *mut ID3D12Device, _: u64, _: u32, _: *const GUID, _: *mut *mut c_void) -> i32, pub GetDeviceRemovedReason: unsafe extern "system" fn(_: *mut ID3D12Device) -> i32, pub GetCopyableFootprints: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_RESOURCE_DESC, _: u32, _: u32, _: u64, _: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, _: *mut u32, _: *mut u64, _: *mut u64), pub CreateQueryHeap: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_QUERY_HEAP_DESC, _: *const GUID, _: *mut *mut c_void) -> i32, pub SetStablePowerState: unsafe extern "system" fn(_: *mut ID3D12Device, _: i32) -> i32, pub CreateCommandSignature: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_COMMAND_SIGNATURE_DESC, _: *mut ID3D12RootSignature, _: *const GUID, _: *mut *mut c_void) -> i32, pub GetResourceTiling: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *mut u32, _: *mut D3D12_PACKED_MIP_INFO, _: *mut D3D12_TILE_SHAPE, _: *mut u32, _: u32, _: *mut D3D12_SUBRESOURCE_TILING), pub GetAdapterLuid: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut LUID) -> *mut LUID,
}

Fields§

§parent: ID3D12ObjectVtbl§GetNodeCount: unsafe extern "system" fn(_: *mut ID3D12Device) -> u32§CreateCommandQueue: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_COMMAND_QUEUE_DESC, _: *const GUID, _: *mut *mut c_void) -> i32§CreateCommandAllocator: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *const GUID, _: *mut *mut c_void) -> i32§CreateGraphicsPipelineState: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC, _: *const GUID, _: *mut *mut c_void) -> i32§CreateComputePipelineState: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_COMPUTE_PIPELINE_STATE_DESC, _: *const GUID, _: *mut *mut c_void) -> i32§CreateCommandList: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: u32, _: *mut ID3D12CommandAllocator, _: *mut ID3D12PipelineState, _: *const GUID, _: *mut *mut c_void) -> i32§CheckFeatureSupport: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *mut c_void, _: u32) -> i32§CreateDescriptorHeap: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_DESCRIPTOR_HEAP_DESC, _: *const GUID, _: *mut *mut c_void) -> i32§GetDescriptorHandleIncrementSize: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32) -> u32§CreateRootSignature: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *const c_void, _: usize, _: *const GUID, _: *mut *mut c_void) -> i32§CreateConstantBufferView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_CONSTANT_BUFFER_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE)§CreateShaderResourceView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *const D3D12_SHADER_RESOURCE_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE)§CreateUnorderedAccessView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *mut ID3D12Resource, _: *const D3D12_UNORDERED_ACCESS_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE)§CreateRenderTargetView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *const D3D12_RENDER_TARGET_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE)§CreateDepthStencilView: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *const D3D12_DEPTH_STENCIL_VIEW_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE)§CreateSampler: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_SAMPLER_DESC, _: D3D12_CPU_DESCRIPTOR_HANDLE)§CopyDescriptors: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *const D3D12_CPU_DESCRIPTOR_HANDLE, _: *const u32, _: u32, _: *const D3D12_CPU_DESCRIPTOR_HANDLE, _: *const u32, _: u32)§CopyDescriptorsSimple: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: D3D12_CPU_DESCRIPTOR_HANDLE, _: D3D12_CPU_DESCRIPTOR_HANDLE, _: u32)§GetResourceAllocationInfo: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut D3D12_RESOURCE_ALLOCATION_INFO, _: u32, _: u32, _: *const D3D12_RESOURCE_DESC) -> *mut D3D12_RESOURCE_ALLOCATION_INFO§GetCustomHeapProperties: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut D3D12_HEAP_PROPERTIES, _: u32, _: u32) -> *mut D3D12_HEAP_PROPERTIES§CreateCommittedResource: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_HEAP_PROPERTIES, _: u32, _: *const D3D12_RESOURCE_DESC, _: u32, _: *const D3D12_CLEAR_VALUE, _: *const GUID, _: *mut *mut c_void) -> i32§CreateHeap: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_HEAP_DESC, _: *const GUID, _: *mut *mut c_void) -> i32§CreatePlacedResource: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Heap, _: u64, _: *const D3D12_RESOURCE_DESC, _: u32, _: *const D3D12_CLEAR_VALUE, _: *const GUID, _: *mut *mut c_void) -> i32§CreateReservedResource: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_RESOURCE_DESC, _: u32, _: *const D3D12_CLEAR_VALUE, _: *const GUID, _: *mut *mut c_void) -> i32§CreateSharedHandle: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12DeviceChild, _: *const SECURITY_ATTRIBUTES, _: u32, _: *const u16, _: *mut *mut c_void) -> i32§OpenSharedHandle: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut c_void, _: *const GUID, _: *mut *mut c_void) -> i32§OpenSharedHandleByName: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const u16, _: u32, _: *mut *mut c_void) -> i32§MakeResident: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *mut *mut ID3D12Pageable) -> i32§Evict: unsafe extern "system" fn(_: *mut ID3D12Device, _: u32, _: *mut *mut ID3D12Pageable) -> i32§CreateFence: unsafe extern "system" fn(_: *mut ID3D12Device, _: u64, _: u32, _: *const GUID, _: *mut *mut c_void) -> i32§GetDeviceRemovedReason: unsafe extern "system" fn(_: *mut ID3D12Device) -> i32§GetCopyableFootprints: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_RESOURCE_DESC, _: u32, _: u32, _: u64, _: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT, _: *mut u32, _: *mut u64, _: *mut u64)§CreateQueryHeap: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_QUERY_HEAP_DESC, _: *const GUID, _: *mut *mut c_void) -> i32§SetStablePowerState: unsafe extern "system" fn(_: *mut ID3D12Device, _: i32) -> i32§CreateCommandSignature: unsafe extern "system" fn(_: *mut ID3D12Device, _: *const D3D12_COMMAND_SIGNATURE_DESC, _: *mut ID3D12RootSignature, _: *const GUID, _: *mut *mut c_void) -> i32§GetResourceTiling: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut ID3D12Resource, _: *mut u32, _: *mut D3D12_PACKED_MIP_INFO, _: *mut D3D12_TILE_SHAPE, _: *mut u32, _: u32, _: *mut D3D12_SUBRESOURCE_TILING)§GetAdapterLuid: unsafe extern "system" fn(_: *mut ID3D12Device, _: *mut LUID) -> *mut LUID

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.