[−][src]Struct dxplr::d3d12::Device1
Implementations
impl Device1
[src]
Trait Implementations
impl Clone for Device1
[src]
impl Debug for Device1
[src]
impl IDevice for Device1
[src]
pub fn check_feature_support<T: CheckFeatureSupport>(
&self,
args: T::Args
) -> Result<T, HResult>
[src]
&self,
args: T::Args
) -> Result<T, HResult>
pub unsafe fn copy_descriptors(
&self,
dest_descriptor_range_starts: &[CPUDescriptorHandle],
dest_descriptor_range_sizes: &[u32],
src_descriptor_range_start: &[CPUDescriptorHandle],
src_descriptor_range_sizes: &[u32],
descriptor_heaps_type: DescriptorHeapType
)
[src]
&self,
dest_descriptor_range_starts: &[CPUDescriptorHandle],
dest_descriptor_range_sizes: &[u32],
src_descriptor_range_start: &[CPUDescriptorHandle],
src_descriptor_range_sizes: &[u32],
descriptor_heaps_type: DescriptorHeapType
)
pub unsafe fn copy_descriptors_simple(
&self,
num_descriptors: u32,
dest_descriptor_range_starts: &CPUDescriptorHandle,
src_descriptor_range_starts: &CPUDescriptorHandle,
descriptor_heaps_type: DescriptorHeapType
)
[src]
&self,
num_descriptors: u32,
dest_descriptor_range_starts: &CPUDescriptorHandle,
src_descriptor_range_starts: &CPUDescriptorHandle,
descriptor_heaps_type: DescriptorHeapType
)
pub fn create_command_allocator<T: ICommandAllocator>(
&self,
ty: CommandListType
) -> Result<T, HResult>
[src]
&self,
ty: CommandListType
) -> Result<T, HResult>
pub fn create_command_list<T: ICommandList>(
&self,
node_mask: u32,
ty: CommandListType,
command_allocator: &CommandAllocator,
initial_state: Option<&PipelineState>
) -> Result<T, HResult>
[src]
&self,
node_mask: u32,
ty: CommandListType,
command_allocator: &CommandAllocator,
initial_state: Option<&PipelineState>
) -> Result<T, HResult>
pub fn create_command_queue<T: ICommandQueue>(
&self,
desc: &CommandQueueDesc<CommandListType>
) -> Result<T, HResult>
[src]
&self,
desc: &CommandQueueDesc<CommandListType>
) -> Result<T, HResult>
pub fn create_command_signature<T: ICommandSignature>(
&self,
desc: &CommandSignatureDesc<'_>,
root_signature: &RootSignature
) -> Result<T, HResult>
[src]
&self,
desc: &CommandSignatureDesc<'_>,
root_signature: &RootSignature
) -> Result<T, HResult>
pub fn create_committed_resource<T: IResource>(
&self,
heap_properties: &HeapProperties<HeapType>,
heap_flags: Option<HeapFlags>,
desc: &ResourceDesc,
initial_resource_state: ResourceStates,
optimized_clear_value: Option<&ClearValue>
) -> Result<T, HResult>
[src]
&self,
heap_properties: &HeapProperties<HeapType>,
heap_flags: Option<HeapFlags>,
desc: &ResourceDesc,
initial_resource_state: ResourceStates,
optimized_clear_value: Option<&ClearValue>
) -> Result<T, HResult>
pub fn create_compute_pipeline_state<T: IPipelineState>(
&self,
desc: &ComputePipelineStateDesc<'_>
) -> Result<T, HResult>
[src]
&self,
desc: &ComputePipelineStateDesc<'_>
) -> Result<T, HResult>
pub unsafe fn create_constant_buffer_view(
&self,
desc: &ConstantBufferViewDesc,
dest_descriptor: CPUDescriptorHandle
)
[src]
&self,
desc: &ConstantBufferViewDesc,
dest_descriptor: CPUDescriptorHandle
)
pub unsafe fn create_depth_stencil_view(
&self,
resource: Option<&Resource>,
desc: Option<&DepthStencilViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
[src]
&self,
resource: Option<&Resource>,
desc: Option<&DepthStencilViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
pub fn create_descriptor_heap<T: IDescriptorHeap>(
&self,
desc: &DescriptorHeapDesc<DescriptorHeapType, u32>
) -> Result<T, HResult>
[src]
&self,
desc: &DescriptorHeapDesc<DescriptorHeapType, u32>
) -> Result<T, HResult>
pub fn create_fence<T: IFence>(
&self,
initial_value: u64,
flags: Option<FenceFlags>
) -> Result<T, HResult>
[src]
&self,
initial_value: u64,
flags: Option<FenceFlags>
) -> Result<T, HResult>
pub fn create_graphics_pipeline_state<T: IPipelineState>(
&self,
desc: &GraphicsPipelineStateDesc<'_, '_, '_, '_, '_, '_, InputLayoutDesc<'_>, &[Format], Format>
) -> Result<T, HResult>
[src]
&self,
desc: &GraphicsPipelineStateDesc<'_, '_, '_, '_, '_, '_, InputLayoutDesc<'_>, &[Format], Format>
) -> Result<T, HResult>
pub fn create_heap<T: IHeap>(&self, desc: HeapDesc) -> Result<T, HResult>
[src]
pub fn create_placed_resource<T: IResource>(
&self,
heap: &Heap,
heap_offset: u64,
desc: &ResourceDesc,
initial_state: ResourceStates,
optimized_clear_value: Option<ClearValue>
) -> Result<T, HResult>
[src]
&self,
heap: &Heap,
heap_offset: u64,
desc: &ResourceDesc,
initial_state: ResourceStates,
optimized_clear_value: Option<ClearValue>
) -> Result<T, HResult>
pub fn create_query_heap<T: IQueryHeap>(
&self,
desc: QueryHeapDesc
) -> Result<T, HResult>
[src]
&self,
desc: QueryHeapDesc
) -> Result<T, HResult>
pub unsafe fn create_render_target_view(
&self,
resource: Option<&Resource>,
desc: Option<&RenderTargetViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
[src]
&self,
resource: Option<&Resource>,
desc: Option<&RenderTargetViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
pub fn create_reserved_resource<T: IResource>(
&self,
desc: &ResourceDesc,
initial_state: ResourceStates,
optimized_clear_value: Option<ClearValue>
) -> Result<T, HResult>
[src]
&self,
desc: &ResourceDesc,
initial_state: ResourceStates,
optimized_clear_value: Option<ClearValue>
) -> Result<T, HResult>
pub fn create_root_signature<T: IRootSignature>(
&self,
node_mask: u32,
blob: &[u8]
) -> Result<T, HResult>
[src]
&self,
node_mask: u32,
blob: &[u8]
) -> Result<T, HResult>
pub fn create_sampler(
&self,
desc: &SamplerDesc<Filter>,
dest_descriptor: CPUDescriptorHandle
)
[src]
&self,
desc: &SamplerDesc<Filter>,
dest_descriptor: CPUDescriptorHandle
)
pub unsafe fn create_shader_resource_view(
&self,
resource: Option<&Resource>,
desc: Option<&ShaderResourceViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
[src]
&self,
resource: Option<&Resource>,
desc: Option<&ShaderResourceViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
pub fn create_shared_handle<T: Interface>(
&self,
object: &T,
attributes: Option<&SECURITY_ATTRIBUTES>,
access: u32,
name: &str
) -> Result<HANDLE, HResult>
[src]
&self,
object: &T,
attributes: Option<&SECURITY_ATTRIBUTES>,
access: u32,
name: &str
) -> Result<HANDLE, HResult>
pub unsafe fn create_unordered_access_view(
&self,
resource: Option<&Resource>,
counter_resource: Option<&Resource>,
desc: Option<&UnorderedAccessViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
[src]
&self,
resource: Option<&Resource>,
counter_resource: Option<&Resource>,
desc: Option<&UnorderedAccessViewDesc>,
dest_descriptor: CPUDescriptorHandle
)
pub fn evict(&self, objects: &[&impl IPageable]) -> Result<(), HResult>
[src]
pub fn get_adapter_luid(&self) -> Luid
[src]
pub fn get_copyable_footprints(
&self,
resource: &ResourceDesc,
first_subresource: u32,
num_subresources: u32,
base_offset: u64
) -> GetCopyableFootprintsResult
[src]
&self,
resource: &ResourceDesc,
first_subresource: u32,
num_subresources: u32,
base_offset: u64
) -> GetCopyableFootprintsResult
pub fn get_custom_heap_properties(
&self,
node_mask: u32,
heap_type: HeapType
) -> HeapProperties<HeapType>
[src]
&self,
node_mask: u32,
heap_type: HeapType
) -> HeapProperties<HeapType>
pub fn get_descriptor_handle_increment_size(
&self,
descriptor_heap_type: DescriptorHeapType
) -> u32
[src]
&self,
descriptor_heap_type: DescriptorHeapType
) -> u32
pub fn get_device_removed_reason(&self) -> HResult
[src]
pub fn get_node_count(&self) -> u32
[src]
pub fn get_resource_allocation_info(
&self,
visible_mask: u32,
descs: &[&ResourceDesc]
) -> ResourceAllocationInfo
[src]
&self,
visible_mask: u32,
descs: &[&ResourceDesc]
) -> ResourceAllocationInfo
pub fn get_resource_tiling(
&self,
resource: &Resource,
num_subresource_tiling: u32,
first_subresource_tiling_to_get: u32
) -> GetResourceTilingResult
[src]
&self,
resource: &Resource,
num_subresource_tiling: u32,
first_subresource_tiling_to_get: u32
) -> GetResourceTilingResult
pub fn make_resident(&self, objects: &[&impl IPageable]) -> Result<(), HResult>
[src]
pub fn open_shared_handle<T: Interface>(
&self,
nt_handle: HANDLE
) -> Result<T, HResult>
[src]
&self,
nt_handle: HANDLE
) -> Result<T, HResult>
pub fn open_shared_handle_by_name(
&self,
name: &str,
access: u32
) -> Result<HANDLE, HResult>
[src]
&self,
name: &str,
access: u32
) -> Result<HANDLE, HResult>
pub fn set_stable_power_state(&self, enable: bool) -> Result<(), HResult>
[src]
impl IDevice1 for Device1
[src]
pub fn create_pipeline_library<T: Interface>(
&self,
data: &[u8]
) -> Result<T, HResult>
[src]
&self,
data: &[u8]
) -> Result<T, HResult>
pub fn set_event_on_multiple_fence_completion(
&self,
fences: &[&Fence],
fence_values: &[u64],
flags: Option<MultipleFenceWaitFlags>,
event: &EventHandle
) -> Result<(), HResult>
[src]
&self,
fences: &[&Fence],
fence_values: &[u64],
flags: Option<MultipleFenceWaitFlags>,
event: &EventHandle
) -> Result<(), HResult>
pub fn set_residency_priority(
&self,
objects: &[&impl IPageable],
priorites: &[ResidencyPriority]
) -> Result<(), HResult>
[src]
&self,
objects: &[&impl IPageable],
priorites: &[ResidencyPriority]
) -> Result<(), HResult>
impl IObject for Device1
[src]
impl Interface for Device1
[src]
type APIType = ID3D12Device1
pub fn new(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn uuidof() -> Guid
[src]
pub fn as_ptr(&self) -> *mut Self::APIType
[src]
pub fn as_com_ptr(&self) -> &ComPtr<Self::APIType>
[src]
pub fn as_unknown(&self) -> *mut IUnknown
[src]
pub fn from_com_ptr(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn query_interface<T: Interface>(&self) -> Result<T, HResult>
[src]
impl Send for Device1
[src]
impl Sync for Device1
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,