diff --git a/src/alloc/gpu_buffer.rs b/src/alloc/gpu_buffer.rs index 1b2d674..e451f18 100644 --- a/src/alloc/gpu_buffer.rs +++ b/src/alloc/gpu_buffer.rs @@ -36,7 +36,7 @@ where .fw .device .create_command_encoder(&wgpu::CommandEncoderDescriptor { - label: Some("Buffer copy"), + label: Some("GpuBuffer::read_async"), }); encoder.copy_buffer_to_buffer(&self.storage, 0, &staging, 0, self.size as u64); @@ -64,7 +64,7 @@ where .fw .device .create_command_encoder(&wgpu::CommandEncoderDescriptor { - label: Some("Buffer copy"), + label: Some("GpuBuffer::read"), }); encoder.copy_buffer_to_buffer(&self.storage, 0, &staging, 0, self.size as u64); @@ -97,7 +97,7 @@ where .fw .device .create_command_encoder(&wgpu::CommandEncoderDescriptor { - label: Some("Buffer copy"), + label: Some("GpuBuffer::write_async"), }); encoder.copy_buffer_to_buffer(&staging, 0, &self.storage, 0, self.size as u64); @@ -127,7 +127,7 @@ where .fw .device .create_command_encoder(&wgpu::CommandEncoderDescriptor { - label: Some("Buffer write"), + label: Some("GpuBuffer::write"), }); self.fw.queue.submit(Some(encoder.finish())); diff --git a/src/alloc/gpu_image.rs b/src/alloc/gpu_image.rs index b6e6c97..403629e 100644 --- a/src/alloc/gpu_image.rs +++ b/src/alloc/gpu_image.rs @@ -27,7 +27,7 @@ impl<'fw> GpuImage<'fw> { .fw .device .create_command_encoder(&wgpu::CommandEncoderDescriptor { - label: Some("Image copy"), + label: Some("GpuImage::read_async"), }); let copy_texture = wgpu::ImageCopyTexture { @@ -144,7 +144,7 @@ impl<'fw> GpuImage<'fw> { .fw .device .create_command_encoder(&wgpu::CommandEncoderDescriptor { - label: Some("Buffer write"), + label: Some("GpuImage::write"), }); self.fw.queue.submit(Some(encoder.finish())); @@ -206,7 +206,6 @@ impl<'fw> GpuImage<'fw> { encoder.copy_buffer_to_texture(copy_buffer, copy_texture, self.size); self.fw.queue.submit(Some(encoder.finish())); - self.fw.poll(); Ok(()) }