mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 09:34:09 +01:00
Reformat comments in wgpu-core. (#3102)
This commit is contained in:
1 parent
fa4d8401e8
commit
215884184b
22 files changed
+525
-289
No files matched your search
@@ -268,7 +268,8 @@ impl<A: HalApi> State<A> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// `extra_buffer` is there to represent the indirect buffer that is also part of the usage scope.
|
||||
// `extra_buffer` is there to represent the indirect buffer that is also
|
||||
// part of the usage scope.
|
||||
fn flush_states(
|
||||
&mut self,
|
||||
raw_encoder: &mut A::CommandEncoder,
|
||||
@@ -391,7 +392,8 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
raw.begin_compute_pass(&hal_desc);
|
||||
}
|
||||
|
||||
// Immediate texture inits required because of prior discards. Need to be inserted before texture reads.
|
||||
// Immediate texture inits required because of prior discards. Need to
|
||||
// be inserted before texture reads.
|
||||
let mut pending_discard_init_fixups = SurfacesInDiscardState::new();
|
||||
|
||||
for command in base.commands {
|
||||
@@ -763,8 +765,11 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
}
|
||||
cmd_buf.status = CommandEncoderStatus::Recording;
|
||||
|
||||
// There can be entries left in pending_discard_init_fixups if a bind group was set, but not used (i.e. no Dispatch occurred)
|
||||
// However, we already altered the discard/init_action state on this cmd_buf, so we need to apply the promised changes.
|
||||
// There can be entries left in pending_discard_init_fixups if a bind
|
||||
// group was set, but not used (i.e. no Dispatch occurred)
|
||||
//
|
||||
// However, we already altered the discard/init_action state on this
|
||||
// cmd_buf, so we need to apply the promised changes.
|
||||
fixup_discarded_surfaces(
|
||||
pending_discard_init_fixups.into_iter(),
|
||||
raw,
|
||||
|
||||
Reference in new issue
Block a user