Struct mltg_bindings::Windows::Win32::Graphics::Direct3D12::ID3D12Device1 [−][src]
#[repr(transparent)]pub struct ID3D12Device1(_);
Implementations
pub unsafe fn GetPrivateData(
&self,
guid: *const Guid,
pdatasize: *mut u32,
pdata: *mut c_void
) -> Result<()>
pub unsafe fn SetPrivateData(
&self,
guid: *const Guid,
datasize: u32,
pdata: *const c_void
) -> Result<()>
pub unsafe fn SetPrivateDataInterface<'a, Param1: IntoParam<'a, IUnknown>>(
&self,
guid: *const Guid,
pdata: Param1
) -> Result<()>
pub unsafe fn CreateCommandQueue<T: Interface>(
&self,
pdesc: *const D3D12_COMMAND_QUEUE_DESC
) -> Result<T>
pub unsafe fn CreateCommandAllocator<T: Interface>(
&self,
type: D3D12_COMMAND_LIST_TYPE
) -> Result<T>
pub unsafe fn CreateGraphicsPipelineState<T: Interface>(
&self,
pdesc: *const D3D12_GRAPHICS_PIPELINE_STATE_DESC
) -> Result<T>
pub unsafe fn CreateComputePipelineState<T: Interface>(
&self,
pdesc: *const D3D12_COMPUTE_PIPELINE_STATE_DESC
) -> Result<T>
pub unsafe fn CreateCommandList<'a, Param2: IntoParam<'a, ID3D12CommandAllocator>, Param3: IntoParam<'a, ID3D12PipelineState>, T: Interface>(
&self,
nodemask: u32,
type: D3D12_COMMAND_LIST_TYPE,
pcommandallocator: Param2,
pinitialstate: Param3
) -> Result<T>
pub unsafe fn CheckFeatureSupport(
&self,
feature: D3D12_FEATURE,
pfeaturesupportdata: *mut c_void,
featuresupportdatasize: u32
) -> Result<()>
pub unsafe fn CreateDescriptorHeap<T: Interface>(
&self,
pdescriptorheapdesc: *const D3D12_DESCRIPTOR_HEAP_DESC
) -> Result<T>
pub unsafe fn GetDescriptorHandleIncrementSize(
&self,
descriptorheaptype: D3D12_DESCRIPTOR_HEAP_TYPE
) -> u32
pub unsafe fn CreateRootSignature<T: Interface>(
&self,
nodemask: u32,
pblobwithrootsignature: *const c_void,
bloblengthinbytes: usize
) -> Result<T>
pub unsafe fn CreateConstantBufferView<'a, Param1: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
pdesc: *const D3D12_CONSTANT_BUFFER_VIEW_DESC,
destdescriptor: Param1
)
pub unsafe fn CreateShaderResourceView<'a, Param0: IntoParam<'a, ID3D12Resource>, Param2: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
presource: Param0,
pdesc: *const D3D12_SHADER_RESOURCE_VIEW_DESC,
destdescriptor: Param2
)
pub unsafe fn CreateUnorderedAccessView<'a, Param0: IntoParam<'a, ID3D12Resource>, Param1: IntoParam<'a, ID3D12Resource>, Param3: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
presource: Param0,
pcounterresource: Param1,
pdesc: *const D3D12_UNORDERED_ACCESS_VIEW_DESC,
destdescriptor: Param3
)
pub unsafe fn CreateRenderTargetView<'a, Param0: IntoParam<'a, ID3D12Resource>, Param2: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
presource: Param0,
pdesc: *const D3D12_RENDER_TARGET_VIEW_DESC,
destdescriptor: Param2
)
pub unsafe fn CreateDepthStencilView<'a, Param0: IntoParam<'a, ID3D12Resource>, Param2: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
presource: Param0,
pdesc: *const D3D12_DEPTH_STENCIL_VIEW_DESC,
destdescriptor: Param2
)
pub unsafe fn CreateSampler<'a, Param1: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
pdesc: *const D3D12_SAMPLER_DESC,
destdescriptor: Param1
)
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
)
pub unsafe fn CopyDescriptorsSimple<'a, Param1: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>, Param2: IntoParam<'a, D3D12_CPU_DESCRIPTOR_HANDLE>>(
&self,
numdescriptors: u32,
destdescriptorrangestart: Param1,
srcdescriptorrangestart: Param2,
descriptorheapstype: D3D12_DESCRIPTOR_HEAP_TYPE
)
pub unsafe fn GetResourceAllocationInfo(
&self,
visiblemask: u32,
numresourcedescs: u32,
presourcedescs: *const D3D12_RESOURCE_DESC
) -> D3D12_RESOURCE_ALLOCATION_INFO
pub unsafe fn GetCustomHeapProperties(
&self,
nodemask: u32,
heaptype: D3D12_HEAP_TYPE
) -> D3D12_HEAP_PROPERTIES
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__: *mut Option<T>
) -> Result<()>
pub unsafe fn CreateHeap<T: Interface>(
&self,
pdesc: *const D3D12_HEAP_DESC,
result__: *mut Option<T>
) -> Result<()>
pub unsafe fn CreatePlacedResource<'a, Param0: IntoParam<'a, ID3D12Heap>, T: Interface>(
&self,
pheap: Param0,
heapoffset: u64,
pdesc: *const D3D12_RESOURCE_DESC,
initialstate: D3D12_RESOURCE_STATES,
poptimizedclearvalue: *const D3D12_CLEAR_VALUE,
result__: *mut Option<T>
) -> Result<()>
pub unsafe fn CreateReservedResource<T: Interface>(
&self,
pdesc: *const D3D12_RESOURCE_DESC,
initialstate: D3D12_RESOURCE_STATES,
poptimizedclearvalue: *const D3D12_CLEAR_VALUE,
result__: *mut Option<T>
) -> Result<()>
pub unsafe fn MakeResident(
&self,
numobjects: u32,
ppobjects: *const Option<ID3D12Pageable>
) -> Result<()>
pub unsafe fn Evict(
&self,
numobjects: u32,
ppobjects: *const Option<ID3D12Pageable>
) -> Result<()>
pub unsafe fn CreateFence<T: Interface>(
&self,
initialvalue: u64,
flags: D3D12_FENCE_FLAGS
) -> Result<T>
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
)
pub unsafe fn CreateQueryHeap<T: Interface>(
&self,
pdesc: *const D3D12_QUERY_HEAP_DESC,
result__: *mut Option<T>
) -> Result<()>
pub unsafe fn SetStablePowerState<'a, Param0: IntoParam<'a, BOOL>>(
&self,
enable: Param0
) -> Result<()>
pub unsafe fn CreateCommandSignature<'a, Param1: IntoParam<'a, ID3D12RootSignature>, T: Interface>(
&self,
pdesc: *const D3D12_COMMAND_SIGNATURE_DESC,
prootsignature: Param1,
result__: *mut Option<T>
) -> Result<()>
pub unsafe fn GetResourceTiling<'a, Param0: IntoParam<'a, ID3D12Resource>>(
&self,
ptiledresource: Param0,
pnumtilesforentireresource: *mut u32,
ppackedmipdesc: *mut D3D12_PACKED_MIP_INFO,
pstandardtileshapefornonpackedmips: *mut D3D12_TILE_SHAPE,
pnumsubresourcetilings: *mut u32,
firstsubresourcetilingtoget: u32,
psubresourcetilingsfornonpackedmips: *mut D3D12_SUBRESOURCE_TILING
)
pub unsafe fn CreatePipelineLibrary<T: Interface>(
&self,
plibraryblob: *const c_void,
bloblength: usize
) -> Result<T>
pub unsafe fn SetEventOnMultipleFenceCompletion<'a, Param4: IntoParam<'a, HANDLE>>(
&self,
ppfences: *const Option<ID3D12Fence>,
pfencevalues: *const u64,
numfences: u32,
flags: D3D12_MULTIPLE_FENCE_WAIT_FLAGS,
hevent: Param4
) -> Result<()>
pub unsafe fn SetResidencyPriority(
&self,
numobjects: u32,
ppobjects: *const Option<ID3D12Pageable>,
ppriorities: *const D3D12_RESIDENCY_PRIORITY
) -> Result<()>
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.
Performs the conversion.
Performs the conversion.
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 ID3D12Device1
impl !Send for ID3D12Device1
impl !Sync for ID3D12Device1
impl Unpin for ID3D12Device1
impl UnwindSafe for ID3D12Device1
Blanket Implementations
Mutably borrows from an owned value. Read more