CommandList

Struct CommandList 

Source
pub struct CommandList { /* private fields */ }

Implementations§

Source§

impl CommandList

Source

pub fn set_name(&self, name: &str) -> DxResult<()>

Source

pub fn get_name(&self) -> DxResult<String>

Source§

impl CommandList

Source

pub fn add_ref(&self) -> u64

Source

pub fn release(&self) -> u64

Source§

impl CommandList

Source

pub fn begin_query( &self, query_heap: &QueryHeap, query_type: QueryType, index: u32, )

Source

pub fn clear_depth_stencil_view( &self, descriptor: CpuDescriptorHandle, clear_flags: ClearFlags, depth: f32, stencil: u8, rects: &[Rect], )

Source

pub fn clear_render_target_view( &self, descriptor: CpuDescriptorHandle, color: [f32; 4], rects: &[Rect], )

Source

pub fn close(&self) -> DxResult<()>

Source

pub fn copy_buffer_region( &self, dest: &Resource, dest_offset: ByteCount, source: &Resource, source_offset: ByteCount, span: ByteCount, )

Source

pub fn copy_resource(&self, dest: &Resource, source: &Resource)

Source

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>, )

Source

pub fn dispatch( &self, thread_group_count_x: u32, thread_group_count_y: u32, thread_group_count_z: u32, )

Source

pub fn dispatch_mesh( &self, thread_group_count_x: u32, thread_group_count_y: u32, thread_group_count_z: u32, )

Source

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, )

Source

pub fn draw_instanced( &self, vertex_count_per_instance: u32, instance_count: u32, start_vertex_location: u32, start_instance_location: u32, )

Source

pub fn end_query( &self, query_heap: &QueryHeap, query_type: QueryType, index: u32, )

Source

pub fn execute_bundle(&self, command_list: &CommandList)

Source

pub fn reset( &self, command_allocator: &CommandAllocator, pipeline_state: Option<&PipelineState>, ) -> DxResult<()>

Source

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, )

Source

pub fn resource_barrier(&self, barriers: &[ResourceBarrier])

Source

pub fn set_blend_factor(&self, blend_factor: [f32; 4])

Source

pub fn set_compute_root_32bit_constant( &self, root_parameter_index: u32, src_data: u32, dest_offset: u32, )

Source

pub fn set_compute_root_32bit_constants( &self, root_parameter_index: u32, src_data: &[u32], dest_offset: u32, )

Source

pub fn set_compute_root_constant_buffer_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )

Source

pub fn set_compute_root_descriptor_table( &self, parameter_index: u32, base_descriptor: GpuDescriptorHandle, )

Source

pub fn set_compute_root_shader_resource_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )

Source

pub fn set_compute_root_signature(&self, root_signature: &RootSignature)

Source

pub fn set_compute_root_unordered_access_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )

Source

pub fn set_descriptor_heaps(&self, heaps: &[DescriptorHeap])

Source

pub fn set_graphics_root_32bit_constant( &self, root_parameter_index: u32, src_data: u32, dest_offset: u32, )

Source

pub fn set_graphics_root_32bit_constants( &self, root_parameter_index: u32, src_data: &[u32], dest_offset: u32, )

Source

pub fn set_graphics_root_constant_buffer_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )

Source

pub fn set_graphics_root_descriptor_table( &self, parameter_index: u32, base_descriptor: GpuDescriptorHandle, )

Source

pub fn set_graphics_root_shader_resource_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )

Source

pub fn set_graphics_root_signature(&self, root_signature: &RootSignature)

Source

pub fn set_graphics_root_unordered_access_view( &self, root_parameter_index: u32, buffer_location: GpuVirtualAddress, )

Source

pub fn set_index_buffer(&self, view: &IndexBufferView)

Source

pub fn set_pipeline_state(&self, pipeline_state: &PipelineState)

Source

pub fn set_primitive_topology(&self, topology: PrimitiveTopology)

Source

pub fn set_render_targets( &self, descriptors: &[CpuDescriptorHandle], single_handle_to_descriptor_range: bool, depth_stencil: Option<CpuDescriptorHandle>, )

Source

pub fn set_scissor_rects(&self, scissors: &[Rect])

Source

pub fn set_vertex_buffers(&self, start_slot: u32, views: &[VertexBufferView])

Source

pub fn set_viewports(&self, viewports: &[Viewport])

Source

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>

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CommandList

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for CommandList

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Hash for CommandList

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for CommandList

Source§

fn cmp(&self, other: &CommandList) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for CommandList

Source§

fn eq(&self, other: &CommandList) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for CommandList

Source§

fn partial_cmp(&self, other: &CommandList) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for CommandList

Source§

impl StructuralPartialEq for CommandList

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.