mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
v0.7 Fix build failure due to rust-lang/rust PR 99413 (#2966)
* Fix build failure due to rust-lang/rust PR 99413 * Remove extraneous indentation from comments. The module comments on `command/bundle.rs` and `swap_chain.rs` are indented by four spaces, which causes rustdoc to try to treat them as code examples and compile them as doctests. Removing the indentation causes rustdoc to treat them as text, as intended. Co-authored-by: Jim Blandy <jimb@red-bean.com>
This commit is contained in:
parent
ad2e1b6ff8
commit
39fafde2b6
@ -34,6 +34,7 @@
|
||||
called. It goes through the commands and issues them into the native command
|
||||
buffer. Thanks to the "normalized" property, it doesn't track any bind group
|
||||
invalidations or index format changes.
|
||||
|
||||
!*/
|
||||
#![allow(clippy::reversed_empty_ranges)]
|
||||
|
||||
|
@ -1236,6 +1236,7 @@ impl<B: GfxBackend> Device<B> {
|
||||
|
||||
// `BTreeMap` has ordered bindings as keys, which allows us to coalesce
|
||||
// the descriptor writes into a single transaction.
|
||||
let mut desc_set; // early declaration so it's dropped after write_map
|
||||
let mut write_map = BTreeMap::new();
|
||||
for entry in desc.entries.iter() {
|
||||
let binding = entry.binding;
|
||||
@ -1513,7 +1514,7 @@ impl<B: GfxBackend> Device<B> {
|
||||
self.desc_allocator
|
||||
.lock()
|
||||
.allocate(&self.raw, &layout.raw, &layout.desc_count, 1)?;
|
||||
let mut desc_set = desc_sets.pop().unwrap();
|
||||
desc_set = desc_sets.pop().unwrap();
|
||||
|
||||
// Set the descriptor set's label for easier debugging.
|
||||
if let Some(label) = desc.label.as_ref() {
|
||||
|
Loading…
Reference in New Issue
Block a user