Enum d3d12::DxgiFactory
source · pub enum DxgiFactory {
Factory1(ComPtr<IDXGIFactory1>),
Factory2(ComPtr<IDXGIFactory2>),
Factory3(ComPtr<IDXGIFactory3>),
Factory4(ComPtr<IDXGIFactory4>),
Factory5(ComPtr<IDXGIFactory5>),
Factory6(ComPtr<IDXGIFactory6>),
}
Variants§
Factory1(ComPtr<IDXGIFactory1>)
Factory2(ComPtr<IDXGIFactory2>)
Factory3(ComPtr<IDXGIFactory3>)
Factory4(ComPtr<IDXGIFactory4>)
Factory5(ComPtr<IDXGIFactory5>)
Factory6(ComPtr<IDXGIFactory6>)
Implementations§
source§impl DxgiFactory
impl DxgiFactory
pub unsafe fn from_factory1(value: ComPtr<IDXGIFactory1>) -> Self
pub fn as_factory1(&self) -> Option<&ComPtr<IDXGIFactory1>>
pub fn factory1(&self) -> &ComPtr<IDXGIFactory1>
pub unsafe fn from_factory2(value: ComPtr<IDXGIFactory2>) -> Self
pub fn as_factory2(&self) -> Option<&ComPtr<IDXGIFactory2>>
pub fn unwrap_factory2(&self) -> &ComPtr<IDXGIFactory2>
pub unsafe fn from_factory3(value: ComPtr<IDXGIFactory3>) -> Self
pub fn as_factory3(&self) -> Option<&ComPtr<IDXGIFactory3>>
pub fn unwrap_factory3(&self) -> &ComPtr<IDXGIFactory3>
pub unsafe fn from_factory4(value: ComPtr<IDXGIFactory4>) -> Self
pub fn as_factory4(&self) -> Option<&ComPtr<IDXGIFactory4>>
pub fn unwrap_factory4(&self) -> &ComPtr<IDXGIFactory4>
pub unsafe fn from_factory5(value: ComPtr<IDXGIFactory5>) -> Self
pub fn as_factory5(&self) -> Option<&ComPtr<IDXGIFactory5>>
pub fn unwrap_factory5(&self) -> &ComPtr<IDXGIFactory5>
pub unsafe fn from_factory6(value: ComPtr<IDXGIFactory6>) -> Self
pub fn as_factory6(&self) -> Option<&ComPtr<IDXGIFactory6>>
pub fn unwrap_factory6(&self) -> &ComPtr<IDXGIFactory6>
Methods from Deref<Target = ComPtr<IDXGIFactory1>>§
pub fn is_null(&self) -> bool
pub fn as_ptr(&self) -> *const T
pub fn as_mut_ptr(&self) -> *mut T
pub unsafe fn as_unknown(&self) -> &IUnknown
pub unsafe fn cast<U>(&self) -> D3DResult<ComPtr<U>>where
U: Interface,
pub fn reset(&self)
pub fn as_list(&self) -> CommandList
pub fn close(&self) -> HRESULT
pub fn reset( &self, allocator: &CommandAllocator, initial_pso: PipelineState ) -> HRESULT
pub fn discard_resource(&self, resource: Resource, region: DiscardRegion<'_>)
pub fn clear_depth_stencil_view( &self, dsv: CpuDescriptor, flags: ClearFlags, depth: f32, stencil: u8, rects: &[Rect] )
pub fn clear_render_target_view( &self, rtv: CpuDescriptor, color: [f32; 4], rects: &[Rect] )
pub fn dispatch(&self, count: WorkGroupCount)
pub fn draw( &self, num_vertices: VertexCount, num_instances: InstanceCount, first_vertex: VertexCount, first_instance: InstanceCount )
pub fn draw_indexed( &self, num_indices: IndexCount, num_instances: InstanceCount, first_index: IndexCount, base_vertex: VertexOffset, first_instance: InstanceCount )
pub fn set_index_buffer( &self, gpu_address: GpuAddress, size: u32, format: Format )
pub fn set_blend_factor(&self, factor: [f32; 4])
pub fn set_stencil_reference(&self, reference: u32)
pub fn set_pipeline_state(&self, pso: &PipelineState)
pub fn execute_bundle(&self, bundle: GraphicsCommandList)
pub fn set_descriptor_heaps(&self, heaps: &[DescriptorHeap])
pub fn set_compute_root_signature(&self, signature: &RootSignature)
pub fn set_graphics_root_signature(&self, signature: &RootSignature)
pub fn set_compute_root_descriptor_table( &self, root_index: RootIndex, base_descriptor: GpuDescriptor )
pub fn set_compute_root_constant_buffer_view( &self, root_index: RootIndex, buffer_location: GpuAddress )
pub fn set_compute_root_shader_resource_view( &self, root_index: RootIndex, buffer_location: GpuAddress )
pub fn set_compute_root_unordered_access_view( &self, root_index: RootIndex, buffer_location: GpuAddress )
pub fn set_compute_root_constant( &self, root_index: RootIndex, value: u32, dest_offset_words: u32 )
pub fn set_graphics_root_descriptor_table( &self, root_index: RootIndex, base_descriptor: GpuDescriptor )
pub fn set_graphics_root_constant_buffer_view( &self, root_index: RootIndex, buffer_location: GpuAddress )
pub fn set_graphics_root_shader_resource_view( &self, root_index: RootIndex, buffer_location: GpuAddress )
pub fn set_graphics_root_unordered_access_view( &self, root_index: RootIndex, buffer_location: GpuAddress )
pub fn set_graphics_root_constant( &self, root_index: RootIndex, value: u32, dest_offset_words: u32 )
pub fn resource_barrier(&self, barriers: &[ResourceBarrier])
pub fn enable_layer(&self)
pub fn start_cpu_descriptor(&self) -> CpuDescriptor
pub fn start_gpu_descriptor(&self) -> GpuDescriptor
pub fn create_heap( &self, size_in_bytes: u64, properties: HeapProperties, alignment: u64, flags: HeapFlags ) -> D3DResult<Heap>
pub fn create_command_allocator( &self, list_type: CmdListType ) -> D3DResult<CommandAllocator>
pub fn create_command_queue( &self, list_type: CmdListType, priority: Priority, flags: CommandQueueFlags, node_mask: NodeMask ) -> D3DResult<CommandQueue>
pub fn create_descriptor_heap( &self, num_descriptors: u32, heap_type: DescriptorHeapType, flags: DescriptorHeapFlags, node_mask: NodeMask ) -> D3DResult<DescriptorHeap>
pub fn get_descriptor_increment_size( &self, heap_type: DescriptorHeapType ) -> u32
pub fn create_graphics_command_list( &self, list_type: CmdListType, allocator: &CommandAllocator, initial: PipelineState, node_mask: NodeMask ) -> D3DResult<GraphicsCommandList>
pub fn create_query_heap( &self, heap_ty: QueryHeapType, count: u32, node_mask: NodeMask ) -> D3DResult<QueryHeap>
pub fn create_graphics_pipeline_state( &self, _root_signature: RootSignature, _vs: Shader<'_>, _ps: Shader<'_>, _gs: Shader<'_>, _hs: Shader<'_>, _ds: Shader<'_>, _node_mask: NodeMask, _cached_pso: CachedPSO<'_>, _flags: PipelineStateFlags ) -> D3DResult<PipelineState>
pub fn create_compute_pipeline_state( &self, root_signature: &RootSignature, cs: Shader<'_>, node_mask: NodeMask, cached_pso: CachedPSO<'_>, flags: PipelineStateFlags ) -> D3DResult<PipelineState>
pub fn create_sampler( &self, sampler: CpuDescriptor, filter: D3D12_FILTER, address_mode: TextureAddressMode, mip_lod_bias: f32, max_anisotropy: u32, comparison_op: D3D12_COMPARISON_FUNC, border_color: [f32; 4], lod: Range<f32> )
pub fn create_root_signature( &self, blob: Blob, node_mask: NodeMask ) -> D3DResult<RootSignature>
pub fn create_command_signature( &self, root_signature: RootSignature, arguments: &[IndirectArgument], stride: u32, node_mask: NodeMask ) -> D3DResult<CommandSignature>
pub fn create_render_target_view( &self, resource: Resource, desc: &RenderTargetViewDesc, descriptor: CpuDescriptor )
pub fn create_fence(&self, initial: u64) -> D3DResult<Fence>
pub fn create_swapchain( &self, queue: *mut IUnknown, hwnd: HWND, desc: &SwapchainDesc ) -> D3DResult<SwapChain>
pub fn create_swapchain_for_hwnd( &self, queue: *mut IUnknown, hwnd: HWND, desc: &SwapchainDesc ) -> D3DResult<SwapChain1>
pub fn create_swapchain_for_composition( &self, queue: *mut IUnknown, desc: &SwapchainDesc ) -> D3DResult<SwapChain1>
pub fn enumerate_adapters(&self, id: u32) -> D3DResult<Adapter1>
pub fn create_swapchain_for_composition_surface_handle( &self, queue: *mut IUnknown, surface_handle: HANDLE, desc: &SwapchainDesc ) -> D3DResult<SwapChain1>
pub fn get_buffer(&self, id: u32) -> D3DResult<Resource>
pub fn present(&self, interval: u32, flags: u32) -> HRESULT
pub fn present_flags( &self, interval: u32, flags: SwapChainPresentFlags ) -> HRESULT
pub fn get_current_back_buffer_index(&self) -> u32
pub fn execute_command_lists(&self, command_lists: &[CommandList])
pub fn signal(&self, fence: &Fence, value: u64) -> HRESULT
sourcepub fn map(
&self,
subresource: Subresource,
read_range: Option<Range<usize>>
) -> D3DResult<*mut ()>
pub fn map( &self, subresource: Subresource, read_range: Option<Range<usize>> ) -> D3DResult<*mut ()>
pub fn unmap(&self, subresource: Subresource, write_range: Option<Range<usize>>)
pub fn gpu_virtual_address(&self) -> u64
pub fn set_event_on_completion(&self, event: Event, value: u64) -> HRESULT
pub fn get_value(&self) -> u64
pub fn signal(&self, value: u64) -> HRESULT
pub unsafe fn as_c_str(&self) -> &CStr
Trait Implementations§
source§impl Clone for DxgiFactory
impl Clone for DxgiFactory
source§fn clone(&self) -> DxgiFactory
fn clone(&self) -> DxgiFactory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DxgiFactory
impl Debug for DxgiFactory
source§impl Deref for DxgiFactory
impl Deref for DxgiFactory
source§impl Hash for DxgiFactory
impl Hash for DxgiFactory
source§impl PartialEq for DxgiFactory
impl PartialEq for DxgiFactory
source§fn eq(&self, other: &DxgiFactory) -> bool
fn eq(&self, other: &DxgiFactory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DxgiFactory
Auto Trait Implementations§
impl RefUnwindSafe for DxgiFactory
impl !Send for DxgiFactory
impl !Sync for DxgiFactory
impl Unpin for DxgiFactory
impl UnwindSafe for DxgiFactory
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