Structs§
- Render
Bundle - A pre-recorded, replayable sequence of draw calls — built via
RenderBundleEncoder::finish, replayed viaRenderPass::execute_bundles. There’s no way to reach the underlyingwgpu::RenderBundlefrom outside this crate. - Render
Bundle Encoder - Records a reusable sequence of draw calls — build via
WGPUBackend::create_render_bundle_encoder, record with the sameset_pipeline/set_bind_group/set_vertex_buffer/set_index_buffer/draw/draw_indexedshape asRenderPass, thenfinishinto aRenderBundle. Re-executing a bundle viaRenderPass::execute_bundlesis often cheaper than re-recording the same draws by hand every frame — worth it once you have many draw calls that don’t change pipeline/bind group/buffers from one frame to the next (static scene geometry, say). - Render
Bundle Encoder Descriptor - Describes a
RenderBundleEncoder— the color/depth-stencil formats and sample count it (and every render pass it’s later executed in viaRenderPass::execute_bundles) must match exactly.