Skip to main content

Recording

Struct Recording 

Source
pub struct Recording<'p, P, Cb> {
    pub cmd_buf: Cb,
    pub resource_pool: &'p mut P,
    /* private fields */
}
Expand description

A Submission bound to a specific command buffer for explicit recording and submission.

Fields§

§cmd_buf: Cb

The command buffer bound to this recording.

Note: This field is read-only.

§resource_pool: &'p mut P

The pool used to allocate resources used during recording.

Note: This field may be mutated in between calls to record. The updated pool will be used for future calls to record.

Implementations§

Source§

impl<'p, P, Cb> Recording<'p, P, Cb>
where Cb: AsRef<CommandBuffer>,

Source

pub fn is_empty(&self) -> bool

Returns true when this submission contains no more commands to record.

Source

pub fn resource<N>(&self, resource_node: N) -> &N::Resource
where N: Node,

Returns a borrow of the original Vulkan resource (buffer, image or acceleration structure) which the given node represents.

Source

pub fn finish(self) -> Result<RecordedSubmission<Cb>, DriverError>

Finalizes recording into a recorded submission for a caller-owned command buffer.

Source§

impl<'p, P, Cb> Recording<'p, P, Cb>

Source

pub fn record<'s>( &mut self, selection: impl Into<RecordSelection<'s>>, ) -> Result<(), DriverError>

Records any remaining graph commands into this submission’s command buffer.

When selection is RecordSelection::Nodes, nodes are processed sequentially in the provided slice order and each step mutates the remaining submission state.

Trait Implementations§

Source§

impl<'p, P: Debug, Cb: Debug> Debug for Recording<'p, P, Cb>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'p, P, Cb> !RefUnwindSafe for Recording<'p, P, Cb>

§

impl<'p, P, Cb> !Sync for Recording<'p, P, Cb>

§

impl<'p, P, Cb> !UnwindSafe for Recording<'p, P, Cb>

§

impl<'p, P, Cb> Freeze for Recording<'p, P, Cb>
where Cb: Freeze,

§

impl<'p, P, Cb> Send for Recording<'p, P, Cb>
where Cb: Send, P: Send,

§

impl<'p, P, Cb> Unpin for Recording<'p, P, Cb>
where Cb: Unpin,

§

impl<'p, P, Cb> UnsafeUnpin for Recording<'p, P, Cb>
where Cb: UnsafeUnpin,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.