pub struct CommandList { /* private fields */ }Implementations§
Source§impl CommandList
impl CommandList
Source§impl CommandList
impl CommandList
pub fn begin_query( &self, query_heap: &QueryHeap, query_type: QueryType, index: u32, )
pub fn clear_depth_stencil_view( &self, descriptor: CpuDescriptorHandle, clear_flags: ClearFlags, depth: f32, stencil: u8, rects: &[Rect], )
pub fn clear_render_target_view( &self, descriptor: CpuDescriptorHandle, color: [f32; 4], rects: &[Rect], )
pub fn close(&self) -> DxResult<()>
pub fn copy_buffer_region( &self, dest: &Resource, dest_offset: ByteCount, source: &Resource, source_offset: ByteCount, span: ByteCount, )
pub fn copy_resource(&self, dest: &Resource, source: &Resource)
pub fn copy_texture_region( &self, dest_location: TextureCopyLocation, dest_x: u32, dest_y: u32, dest_z: u32, source_location: TextureCopyLocation, source_box: Option<&Box>, )
pub fn dispatch( &self, thread_group_count_x: u32, thread_group_count_y: u32, thread_group_count_z: u32, )
pub fn dispatch_mesh( &self, thread_group_count_x: u32, thread_group_count_y: u32, thread_group_count_z: u32, )
pub fn draw_indexed_instanced( &self, index_count_per_instance: u32, instance_count: u32, start_index_location: u32, base_vertex_location: i32, start_instance_location: u32, )
pub fn draw_instanced( &self, vertex_count_per_instance: u32, instance_count: u32, start_vertex_location: u32, start_instance_location: u32, )
pub fn end_query( &self, query_heap: &QueryHeap, query_type: QueryType, index: u32, )
pub fn execute_bundle(&self, command_list: &CommandList)
pub fn reset( &self, command_allocator: &CommandAllocator, pipeline_state: Option<&PipelineState>, ) -> DxResult<()>
pub fn resolve_query_data( &self, query_heap: &QueryHeap, query_type: QueryType, start_index: u32, num_queries: u32, destination_buffer: &Resource, aligned_destination_buffer_offset: ByteCount, )
pub fn resource_barrier(&self, barriers: &[ResourceBarrier])
pub fn set_blend_factor(&self, blend_factor: [f32; 4])
pub fn set_compute_root_32bit_constant( &self, root_parameter_index: u32, src_data: u32, dest_offset: u32, )
pub fn set_compute_root_32bit_constants( &self, root_parameter_index: u32, src_data: &[u32], dest_offset: u32, )
pub fn set_compute_root_constant_buffer_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )
pub fn set_compute_root_descriptor_table( &self, parameter_index: u32, base_descriptor: GpuDescriptorHandle, )
pub fn set_compute_root_shader_resource_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )
pub fn set_compute_root_signature(&self, root_signature: &RootSignature)
pub fn set_compute_root_unordered_access_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )
pub fn set_descriptor_heaps(&self, heaps: &[DescriptorHeap])
pub fn set_graphics_root_32bit_constant( &self, root_parameter_index: u32, src_data: u32, dest_offset: u32, )
pub fn set_graphics_root_32bit_constants( &self, root_parameter_index: u32, src_data: &[u32], dest_offset: u32, )
pub fn set_graphics_root_constant_buffer_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )
pub fn set_graphics_root_descriptor_table( &self, parameter_index: u32, base_descriptor: GpuDescriptorHandle, )
pub fn set_graphics_root_shader_resource_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )
pub fn set_graphics_root_signature(&self, root_signature: &RootSignature)
pub fn set_graphics_root_unordered_access_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )
pub fn set_index_buffer(&self, view: &IndexBufferView)
pub fn set_pipeline_state(&self, pipeline_state: &PipelineState)
pub fn set_primitive_topology(&self, topology: PrimitiveTopology)
pub fn set_render_targets( &self, descriptors: &[CpuDescriptorHandle], single_handle_to_descriptor_range: bool, depth_stencil: Option<CpuDescriptorHandle>, )
pub fn set_scissor_rects(&self, scissors: &[Rect])
pub fn set_vertex_buffers(&self, start_slot: u32, views: &[VertexBufferView])
pub fn set_viewports(&self, viewports: &[Viewport])
pub fn update_subresources( &self, destination_resource: &Resource, intermediate_resource: &Resource, first_subresouce: u32, num_subresources: u32, required_size: ByteCount, layouts: &[PlacedSubresourceFootprint], num_rows: &[u32], row_sizes_in_bytes: &[ByteCount], source_data: &[SubresourceData<'_>], ) -> DxResult<ByteCount>
pub fn update_subresources_heap_alloc( &self, destination_resource: &Resource, intermediate_resource: &Resource, intermediate_offset: ByteCount, first_subresouce: u32, num_subresources: u32, source_data: &[SubresourceData<'_>], ) -> DxResult<ByteCount>
Trait Implementations§
Source§impl Clone for CommandList
impl Clone for CommandList
Source§impl Debug for CommandList
impl Debug for CommandList
Source§impl Drop for CommandList
impl Drop for CommandList
Source§impl Hash for CommandList
impl Hash for CommandList
Source§impl Ord for CommandList
impl Ord for CommandList
Source§fn cmp(&self, other: &CommandList) -> Ordering
fn cmp(&self, other: &CommandList) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommandList
impl PartialEq for CommandList
Source§impl PartialOrd for CommandList
impl PartialOrd for CommandList
impl Eq for CommandList
impl StructuralPartialEq for CommandList
Auto Trait Implementations§
impl Freeze for CommandList
impl RefUnwindSafe for CommandList
impl !Send for CommandList
impl !Sync for CommandList
impl Unpin for CommandList
impl UnwindSafe for CommandList
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