Struct mltg_bindings::Windows::Win32::Graphics::Direct3D12::ID3D12Device [−][src]
#[repr(transparent)]pub struct ID3D12Device(_);
Implementations
pub unsafe fn GetPrivateData(
&self,
guid: *const Guid,
pdatasize: *mut u32,
pdata: *mut c_void
) -> HRESULT
[src]pub unsafe fn SetPrivateData(
&self,
guid: *const Guid,
datasize: u32,
pdata: *const c_void
) -> HRESULT
[src]pub unsafe fn SetPrivateDataInterface<'a>(
&self,
guid: *const Guid,
pdata: impl IntoParam<'a, IUnknown>
) -> HRESULT
[src]pub unsafe fn CreateCommandQueue<T: Interface>(
&self,
pdesc: *const D3D12_COMMAND_QUEUE_DESC
) -> Result<T>
[src]pub unsafe fn CreateCommandAllocator<T: Interface>(
&self,
type: D3D12_COMMAND_LIST_TYPE
) -> Result<T>
[src]pub unsafe fn CreateGraphicsPipelineState<T: Interface>(
&self,
pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC
) -> Result<T>
[src]pub unsafe fn CreateComputePipelineState<T: Interface>(
&self,
pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC
) -> Result<T>
[src]pub unsafe fn CreateCommandList<'a, T: Interface>(
&self,
nodemask: u32,
type: D3D12_COMMAND_LIST_TYPE,
pcommandallocator: impl IntoParam<'a, ID3D12CommandAllocator>,
pinitialstate: impl IntoParam<'a, ID3D12PipelineState>
) -> Result<T>
[src]pub unsafe fn CheckFeatureSupport(
&self,
feature: D3D12_FEATURE,
pfeaturesupportdata: *mut c_void,
featuresupportdatasize: u32
) -> HRESULT
[src]pub unsafe fn CreateDescriptorHeap<T: Interface>(
&self,
pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC
) -> Result<T>
[src]pub unsafe fn GetDescriptorHandleIncrementSize(
&self,
descriptorheaptype: D3D12_DESCRIPTOR_HEAP_TYPE
) -> u32
[src]pub unsafe fn CreateRootSignature<T: Interface>(
&self,
nodemask: u32,
pblobwithrootsignature: *const c_void,
bloblengthinbytes: usize
) -> Result<T>
[src]pub unsafe fn CreateConstantBufferView<'a>(
&self,
pdesc: *const D3D12_CONSTANT_BUFFER_VIEW_DESC,
destdescriptor: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>
)
[src]pub unsafe fn CreateShaderResourceView<'a>(
&self,
presource: impl IntoParam<'a, ID3D12Resource>,
pdesc: *const D3D12_SHADER_RESOURCE_VIEW_DESC,
destdescriptor: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>
)
[src]pub unsafe fn CreateUnorderedAccessView<'a>(
&self,
presource: impl IntoParam<'a, ID3D12Resource>,
pcounterresource: impl IntoParam<'a, ID3D12Resource>,
pdesc: *const D3D12_UNORDERED_ACCESS_VIEW_DESC,
destdescriptor: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>
)
[src]pub unsafe fn CreateRenderTargetView<'a>(
&self,
presource: impl IntoParam<'a, ID3D12Resource>,
pdesc: *const D3D12_RENDER_TARGET_VIEW_DESC,
destdescriptor: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>
)
[src]pub unsafe fn CreateDepthStencilView<'a>(
&self,
presource: impl IntoParam<'a, ID3D12Resource>,
pdesc: *const D3D12_DEPTH_STENCIL_VIEW_DESC,
destdescriptor: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>
)
[src]pub unsafe fn CreateSampler<'a>(
&self,
pdesc: *const D3D12_SAMPLER_DESC,
destdescriptor: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>
)
[src]pub unsafe fn CopyDescriptors(
&self,
numdestdescriptorranges: u32,
pdestdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE,
pdestdescriptorrangesizes: *const u32,
numsrcdescriptorranges: u32,
psrcdescriptorrangestarts: *const D3D12_CPU_DESCRIPTOR_HANDLE,
psrcdescriptorrangesizes: *const u32,
descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE
)
[src]pub unsafe fn CopyDescriptorsSimple<'a>(
&self,
numdescriptors: u32,
destdescriptorrangestart: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>,
srcdescriptorrangestart: impl IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>,
descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE
)
[src]pub unsafe fn GetResourceAllocationInfo(
&self,
visiblemask: u32,
numresourcedescs: u32,
presourcedescs: *const D3D12_RESOURCE_DESC
) -> D3D12_RESOURCE_ALLOCATION_INFO
[src]pub unsafe fn GetCustomHeapProperties(
&self,
nodemask: u32,
heaptype: D3D12_HEAP_TYPE
) -> D3D12_HEAP_PROPERTIES
[src]pub unsafe fn CreateCommittedResource<T: Interface>(
&self,
pheapproperties: *const D3D12_HEAP_PROPERTIES,
heapflags: D3D12_HEAP_FLAGS,
pdesc: *const D3D12_RESOURCE_DESC,
initialresourcestate: D3D12_RESOURCE_STATES,
poptimizedclearvalue: *const D3D12_CLEAR_VALUE
) -> Result<T>
[src]pub unsafe fn CreatePlacedResource<'a, T: Interface>(
&self,
pheap: impl IntoParam<'a, ID3D12Heap>,
heapoffset: u64,
pdesc: *const D3D12_RESOURCE_DESC,
initialstate: D3D12_RESOURCE_STATES,
poptimizedclearvalue: *const D3D12_CLEAR_VALUE
) -> Result<T>
[src]pub unsafe fn CreateReservedResource<T: Interface>(
&self,
pdesc: *const D3D12_RESOURCE_DESC,
initialstate: D3D12_RESOURCE_STATES,
poptimizedclearvalue: *const D3D12_CLEAR_VALUE
) -> Result<T>
[src]pub unsafe fn MakeResident(
&self,
numobjects: u32,
ppobjects: *mut Option<ID3D12Pageable>
) -> HRESULT
[src]pub unsafe fn Evict(
&self,
numobjects: u32,
ppobjects: *mut Option<ID3D12Pageable>
) -> HRESULT
[src]pub unsafe fn CreateFence<T: Interface>(
&self,
initialvalue: u64,
flags: D3D12_FENCE_FLAGS
) -> Result<T>
[src]pub unsafe fn GetCopyableFootprints(
&self,
presourcedesc: *const D3D12_RESOURCE_DESC,
firstsubresource: u32,
numsubresources: u32,
baseoffset: u64,
playouts: *mut D3D12_PLACED_SUBRESOURCE_FOOTPRINT,
pnumrows: *mut u32,
prowsizeinbytes: *mut u64,
ptotalbytes: *mut u64
)
[src]pub unsafe fn CreateQueryHeap<T: Interface>(
&self,
pdesc: *const D3D12_QUERY_HEAP_DESC
) -> Result<T>
[src]pub unsafe fn CreateCommandSignature<'a, T: Interface>(
&self,
pdesc: *const D3D12_COMMAND_SIGNATURE_DESC,
prootsignature: impl IntoParam<'a, ID3D12RootSignature>
) -> Result<T>
[src]pub unsafe fn GetResourceTiling<'a>(
&self,
ptiledresource: impl IntoParam<'a, ID3D12Resource>,
pnumtilesforentireresource: *mut u32,
ppackedmipdesc: *mut D3D12_PACKED_MIP_INFO,
pstandardtileshapefornonpackedmips: *mut D3D12_TILE_SHAPE,
pnumsubresourcetilings: *mut u32,
firstsubresourcetilingtoget: u32,
psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING
)
[src]Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Vtable = ID3D12Device_abi
Returns the vtable for an assumed interface. The name comes from Box
’s assume_init
method as
it assumes the vtable is implemented by the current interface’s vtable (e.g. a parent interface). Read more
Attempts to cast the current interface to another interface using QueryInterface
.
The name cast
is preferred to query
because there is a WinRT method named query but not one
named cast. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ID3D12Device
impl !Send for ID3D12Device
impl !Sync for ID3D12Device
impl Unpin for ID3D12Device
impl UnwindSafe for ID3D12Device
Blanket Implementations
Returns a pointer for setting the object’s value via an ABI call.
Casts the ABI representation to a Rust object by taking ownership of the bits.
Mutably borrows from an owned value. Read more