Skip to main content

Module render_bundle

Module render_bundle 

Source

Structs§

RenderBundle
A pre-recorded, replayable sequence of draw calls — built via RenderBundleEncoder::finish, replayed via RenderPass::execute_bundles. There’s no way to reach the underlying wgpu::RenderBundle from outside this crate.
RenderBundleEncoder
Records a reusable sequence of draw calls — build via WGPUBackend::create_render_bundle_encoder, record with the same set_pipeline/set_bind_group/set_vertex_buffer/ set_index_buffer/draw/draw_indexed shape as RenderPass, then finish into a RenderBundle. Re-executing a bundle via RenderPass::execute_bundles is 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).
RenderBundleEncoderDescriptor
Describes a RenderBundleEncoder — the color/depth-stencil formats and sample count it (and every render pass it’s later executed in via RenderPass::execute_bundles) must match exactly.