pub struct RenderBundle { /* private fields */ }Expand description
Pre-prepared reusable bundle of GPU operations.
It only supports a handful of render commands, but it makes them reusable. Executing a
RenderBundle is often more efficient than issuing the underlying commands manually.
It can be created by use of a RenderBundleEncoder, and executed onto a CommandEncoder
using RenderPass::execute_bundles.
Corresponds to WebGPU GPURenderBundle.
Implementations§
Source§impl RenderBundle
impl RenderBundle
Sourcepub fn as_custom<T: RenderBundleInterface>(&self) -> Option<&T>
Available on custom only.
pub fn as_custom<T: RenderBundleInterface>(&self) -> Option<&T>
custom only.Returns custom implementation of RenderBundle (if custom backend and is internally T)
Trait Implementations§
Source§impl Clone for RenderBundle
impl Clone for RenderBundle
Source§fn clone(&self) -> RenderBundle
fn clone(&self) -> RenderBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderBundle
impl Debug for RenderBundle
impl Eq for RenderBundle
Source§impl Hash for RenderBundle
impl Hash for RenderBundle
Source§impl Ord for RenderBundle
impl Ord for RenderBundle
1.21.0 (const: unstable) · 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 RenderBundle
impl PartialEq for RenderBundle
Auto Trait Implementations§
impl !RefUnwindSafe for RenderBundle
impl !UnwindSafe for RenderBundle
impl Freeze for RenderBundle
impl Send for RenderBundle
impl Sync for RenderBundle
impl Unpin for RenderBundle
impl UnsafeUnpin for RenderBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CommonTraits for T
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.