Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gfx-rs/wgpu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4c6d246a9295c888a7c93cbb9214202277680af9
Choose a base ref
..
head repository: gfx-rs/wgpu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 78610370fdcfb6f375d1f4173d1e6ca940b1747f
Choose a head ref
Showing with 7 additions and 3 deletions.
  1. +7 −3 wgpu-core/src/command/bundle.rs
10 changes: 7 additions & 3 deletions wgpu-core/src/command/bundle.rs
Original file line number Diff line number Diff line change
@@ -30,15 +30,16 @@ render bundles just replay the commands.
To create a render bundle:
1) Create a [`RenderBundleEncoder`] by calling [`Global::device_create_render_bundle_encoder`].
1) Create a [`RenderBundleEncoder`] by calling
[`Global::device_create_render_bundle_encoder`][Gdcrbe].
2) Record commands in the `RenderBundleEncoder` using functions from the
[`bundle_ffi`] module.
3) Call [`Global::render_bundle_encoder_finish`], which analyzes and cleans up
3) Call [`Global::render_bundle_encoder_finish`][Grbef], which analyzes and cleans up
the command stream and returns a `RenderBundleId`.
4) Then, any number of times, call [`wgpu_render_pass_execute_bundles`] to
4) Then, any number of times, call [`wgpu_render_pass_execute_bundles`][wrpeb] to
execute the bundle as part of some render pass.
## Implementation
@@ -61,6 +62,9 @@ called. It goes through the commands and issues them into the native command
buffer. Thanks to isolation, it doesn't track any bind group invalidations or
index format changes.
[Gdcrbe]: crate::hub::Global::device_create_render_bundle_encoder
[Grbef]: crate::hub::Global::render_bundle_encoder_finish
[wrpeb]: crate::command::render_ffi::wgpu_render_pass_execute_bundles
!*/

#![allow(clippy::reversed_empty_ranges)]