diff options
Diffstat (limited to 'third_party/rust/wgpu-core/src/command/mod.rs')
-rw-r--r-- | third_party/rust/wgpu-core/src/command/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/rust/wgpu-core/src/command/mod.rs b/third_party/rust/wgpu-core/src/command/mod.rs index 2d5fca200a..febed4fc97 100644 --- a/third_party/rust/wgpu-core/src/command/mod.rs +++ b/third_party/rust/wgpu-core/src/command/mod.rs @@ -75,7 +75,7 @@ impl<A: HalApi> CommandEncoder<A> { Ok(()) } - fn discard(&mut self) { + pub(crate) fn discard(&mut self) { if self.is_open { self.is_open = false; unsafe { self.raw.discard_encoding() }; @@ -112,7 +112,7 @@ pub(crate) struct DestroyedBufferError(pub id::BufferId); pub(crate) struct DestroyedTextureError(pub id::TextureId); pub struct CommandBufferMutable<A: HalApi> { - encoder: CommandEncoder<A>, + pub(crate) encoder: CommandEncoder<A>, status: CommandEncoderStatus, pub(crate) trackers: Tracker<A>, buffer_memory_init_actions: Vec<BufferInitTrackerAction<A>>, @@ -174,6 +174,7 @@ impl<A: HalApi> CommandBuffer<A> { .as_ref() .unwrap_or(&String::from("<CommandBuffer>")) .as_str(), + None, ), data: Mutex::new(Some(CommandBufferMutable { encoder: CommandEncoder { |