Struct wgpu::RenderBundle
source · 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 global_id(&self) -> Id
Available on crate feature expose-ids
only.
pub fn global_id(&self) -> Id
expose-ids
only.Returns a globally-unique identifier for this RenderBundle
.
Calling this method multiple times on the same object will always return the same value.
The returned value is guaranteed to be different for all resources created from the same Instance
.