pub struct CommandEncoder { /* private fields */ }Implementations§
Source§impl CommandEncoder
impl CommandEncoder
Sourcepub unsafe fn as_hal_mut<A: Api, F: FnOnce(Option<&mut A::CommandEncoder>) -> R, R>(
self: &Arc<Self>,
hal_command_encoder_callback: F,
) -> R
pub unsafe fn as_hal_mut<A: Api, F: FnOnce(Option<&mut A::CommandEncoder>) -> R, R>( self: &Arc<Self>, hal_command_encoder_callback: F, ) -> R
Source§impl CommandEncoder
impl CommandEncoder
pub fn clear_buffer( self: &Arc<Self>, dst: Arc<Buffer>, offset: BufferAddress, size: Option<BufferAddress>, )
pub fn clear_texture( self: &Arc<Self>, dst: Arc<Texture>, subresource_range: &ImageSubresourceRange, )
Source§impl CommandEncoder
impl CommandEncoder
pub fn begin_compute_pass( self: &Arc<Self>, desc: &ComputePassDescriptor<'_, PassTimestampWrites<Arc<QuerySet>>>, ) -> ComputePass
Source§impl CommandEncoder
impl CommandEncoder
pub fn mark_acceleration_structures_built( self: &Arc<Self>, blases: &[Arc<Blas>], tlases: &[Arc<Tlas>], )
pub fn build_acceleration_structures<'a>( self: &Arc<Self>, blas_iter: impl Iterator<Item = BlasBuildEntry<'a, Arc<Blas>, Arc<Buffer>>>, tlases: Vec<ArcTlasPackage>, )
Source§impl CommandEncoder
impl CommandEncoder
pub fn begin_ray_tracing_pass_inner( self: &Arc<Self>, desc: &RayTracingPassDescriptor<'_>, ) -> (RayTracingPass, Option<CommandEncoderError>)
pub fn begin_ray_tracing_pass( self: &Arc<Self>, desc: &RayTracingPassDescriptor<'_>, ) -> RayTracingPass
Source§impl CommandEncoder
impl CommandEncoder
pub fn begin_render_pass( self: &Arc<Self>, desc: ResolvedRenderPassDescriptor<'_>, ) -> RenderPass
Source§impl CommandEncoder
impl CommandEncoder
pub fn copy_buffer_to_buffer( self: &Arc<Self>, source: Arc<Buffer>, source_offset: BufferAddress, destination: Arc<Buffer>, destination_offset: BufferAddress, size: Option<BufferAddress>, )
pub fn copy_buffer_to_texture( self: &Arc<Self>, source: &TexelCopyBufferInfo<Arc<Buffer>>, destination: &TexelCopyTextureInfo<Arc<Texture>>, copy_size: &Extent3d, )
pub fn copy_texture_to_buffer( self: &Arc<Self>, source: &TexelCopyTextureInfo<Arc<Texture>>, destination: &TexelCopyBufferInfo<Arc<Buffer>>, copy_size: &Extent3d, )
pub fn copy_texture_to_texture( self: &Arc<Self>, source: &TexelCopyTextureInfo<Arc<Texture>>, destination: &TexelCopyTextureInfo<Arc<Texture>>, copy_size: &Extent3d, )
Source§impl CommandEncoder
impl CommandEncoder
pub fn transition_resources( self: &Arc<Self>, buffer_transitions: impl Iterator<Item = BufferTransition<Arc<Buffer>>>, texture_transitions: impl Iterator<Item = TextureTransition<Arc<Texture>>>, )
Source§impl CommandEncoder
impl CommandEncoder
pub fn finish( self: &Arc<Self>, desc: &CommandBufferDescriptor<Label<'_>>, ) -> Arc<CommandBuffer> ⓘ
Source§impl CommandEncoder
impl CommandEncoder
pub fn push_debug_group(self: &Arc<Self>, label: &str)
pub fn insert_debug_marker(self: &Arc<Self>, label: &str)
pub fn pop_debug_group(self: &Arc<Self>)
Trait Implementations§
Source§impl Drop for CommandEncoder
impl Drop for CommandEncoder
Source§impl Labeled for CommandEncoder
impl Labeled for CommandEncoder
Source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
Source§impl ParentDevice for CommandEncoder
impl ParentDevice for CommandEncoder
Source§impl ResourceType for CommandEncoder
impl ResourceType for CommandEncoder
Auto Trait Implementations§
impl !Freeze for CommandEncoder
impl !RefUnwindSafe for CommandEncoder
impl !UnwindSafe for CommandEncoder
impl Forget for CommandEncoder
impl Move for CommandEncoder
impl Send for CommandEncoder
impl Sync for CommandEncoder
impl Unpin for CommandEncoderwhere
Arc<Device>: Unpin,
*const u8 is !null: Unpin,
Align1<u8>: Unpin,
Box<dyn DynCommandEncoder>: Unpin,
Box<dyn DynCommandBuffer>: Unpin,
InternalBitFlags: Unpin,
Arc<Buffer>: Unpin,
(): Unpin,
InternalBitFlags: Unpin,
*const (Range<u32>, TextureUses) is !null: Unpin,
(Range<u32>, TextureUses): Unpin,
Arc<Texture>: Unpin,
TextureSelector: Unpin,
Arc<Blas>: Unpin,
Arc<Tlas>: Unpin,
Arc<TextureView>: Unpin,
Arc<BindGroup>: Unpin,
Arc<ComputePipeline>: Unpin,
Arc<RenderPipeline>: Unpin,
Arc<RayTracingPipeline>: Unpin,
Arc<RenderBundle>: Unpin,
Arc<QuerySet>: Unpin,
Arc<[RayTracingIntersectionType]>: Unpin,
Box<dyn DynBuffer>: Unpin,
NonZero<u64>: Unpin,
*const ArcInner<BindGroup> is !null: Unpin,
Box<dyn DynBindGroup>: Unpin,
Box<dyn DynTexture>: Unpin,
*const ArcInner<TextureView> is !null: Unpin,
Box<dyn DynTextureView>: Unpin,
*const Box<dyn DynTextureView> is !null: Unpin,
&'static [TextureAspect]: Unpin,
Box<dyn DynQuerySet>: Unpin,
*const Option<RenderPassColorAttachment> is !null: Unpin,
Option<RenderPassColorAttachment>: Unpin,
NonZero<u32>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
PointerId<Buffer>: Unpin,
PointerId<Texture>: Unpin,
PointerId<QuerySet>: Unpin,
PointerId<BindGroup>: Unpin,
PointerId<ComputePipeline>: Unpin,
PointerId<TextureView>: Unpin,
PointerId<RayTracingPipeline>: Unpin,
PointerId<RenderPipeline>: Unpin,
PointerId<RenderBundle>: Unpin,
*const Option<RenderPassColorAttachment<PointerId<TextureView>>> is !null: Unpin,
Option<RenderPassColorAttachment<PointerId<TextureView>>>: Unpin,
PointerId<Blas>: Unpin,
PointerId<Tlas>: Unpin,
Box<DeviceMismatch>: Unpin,
&'static str: Unpin,
String: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
Box<BinderError>: Unpin,
Box<RenderPassErrorInner>: Unpin,
Box<RayTracingPassErrorInner>: Unpin,
InternalBitFlags: Unpin,
impl UnsafeUnpin for CommandEncoderwhere
*const ArcInner<Device> is !null: UnsafeUnpin,
PhantomData<ArcInner<Device>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const dyn DynCommandEncoder is !null: UnsafeUnpin,
PhantomData<dyn DynCommandEncoder>: UnsafeUnpin,
PhantomData<Box<dyn DynCommandBuffer>>: UnsafeUnpin,
PhantomData<BufferUses>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Option<Arc<Buffer>>>: UnsafeUnpin,
PhantomData<PendingTransition<BufferUses>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<TextureUses>: UnsafeUnpin,
PhantomData<fn() -> FxHasher>: UnsafeUnpin,
PhantomData<(usize, ComplexTextureState)>: UnsafeUnpin,
PhantomData<Option<Arc<Texture>>>: UnsafeUnpin,
PhantomData<PendingTransition<TextureUses>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<Option<Arc<Blas>>>: UnsafeUnpin,
PhantomData<Arc<Tlas>>: UnsafeUnpin,
PhantomData<Arc<TextureView>>: UnsafeUnpin,
PhantomData<Arc<BindGroup>>: UnsafeUnpin,
PhantomData<Arc<ComputePipeline>>: UnsafeUnpin,
PhantomData<Arc<RenderPipeline>>: UnsafeUnpin,
PhantomData<Arc<RayTracingPipeline>>: UnsafeUnpin,
PhantomData<Arc<RenderBundle>>: UnsafeUnpin,
PhantomData<Option<Arc<QuerySet>>>: UnsafeUnpin,
PhantomData<BufferInitTrackerAction>: UnsafeUnpin,
PhantomData<TextureInitTrackerAction>: UnsafeUnpin,
PhantomData<TextureSurfaceDiscard>: UnsafeUnpin,
PhantomData<AsAction>: UnsafeUnpin,
PhantomData<TempResource>: UnsafeUnpin,
PhantomData<BufferPoolEntry>: UnsafeUnpin,
PhantomData<Command<ArcReferences>>: UnsafeUnpin,
PhantomData<Command<PointerReferences>>: UnsafeUnpin,
PhantomData<(TrackerIndex, BitVec)>: UnsafeUnpin,
PhantomData<DeferredQuerySetResolve>: UnsafeUnpin,
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
*const BinderError is !null: UnsafeUnpin,
PhantomData<BinderError>: UnsafeUnpin,
*const RenderPassErrorInner is !null: UnsafeUnpin,
PhantomData<RenderPassErrorInner>: UnsafeUnpin,
*const RayTracingPassErrorInner is !null: UnsafeUnpin,
PhantomData<RayTracingPassErrorInner>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
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