Struct EncodingState

Source
pub(crate) struct EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder> {
    pub(crate) device: &'cmd_enc Arc<Device>,
    pub(crate) raw_encoder: &'raw_encoder mut dyn DynCommandEncoder,
    pub(crate) tracker: &'cmd_enc mut Tracker,
    pub(crate) buffer_memory_init_actions: &'cmd_enc mut Vec<BufferInitTrackerAction>,
    pub(crate) texture_memory_actions: &'cmd_enc mut CommandBufferTextureMemoryActions,
    pub(crate) as_actions: &'cmd_enc mut Vec<AsAction>,
    pub(crate) indirect_draw_validation_resources: &'cmd_enc mut DrawResources,
    pub(crate) snatch_guard: &'snatch_guard SnatchGuard<'snatch_guard>,
    pub(crate) debug_scope_depth: &'cmd_enc mut u32,
}
Expand description

State applicable when encoding commands onto a compute pass, or onto a render pass, or directly with a command encoder.

Fields§

§device: &'cmd_enc Arc<Device>§raw_encoder: &'raw_encoder mut dyn DynCommandEncoder§tracker: &'cmd_enc mut Tracker§buffer_memory_init_actions: &'cmd_enc mut Vec<BufferInitTrackerAction>§texture_memory_actions: &'cmd_enc mut CommandBufferTextureMemoryActions§as_actions: &'cmd_enc mut Vec<AsAction>§indirect_draw_validation_resources: &'cmd_enc mut DrawResources§snatch_guard: &'snatch_guard SnatchGuard<'snatch_guard>§debug_scope_depth: &'cmd_enc mut u32

Current debug scope nesting depth.

When encoding a compute or render pass, this is the depth of debug scopes in the pass, not the depth of debug scopes in the parent encoder.

Auto Trait Implementations§

§

impl<'snatch_guard, 'cmd_enc, 'raw_encoder> Freeze for EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder>

§

impl<'snatch_guard, 'cmd_enc, 'raw_encoder> !RefUnwindSafe for EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder>

§

impl<'snatch_guard, 'cmd_enc, 'raw_encoder> Send for EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder>

§

impl<'snatch_guard, 'cmd_enc, 'raw_encoder> Sync for EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder>

§

impl<'snatch_guard, 'cmd_enc, 'raw_encoder> Unpin for EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder>

§

impl<'snatch_guard, 'cmd_enc, 'raw_encoder> !UnwindSafe for EncodingState<'snatch_guard, 'cmd_enc, 'raw_encoder>

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
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

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, 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.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,