diff options
Diffstat (limited to 'components/script/dom/gpucommandencoder.rs')
-rw-r--r-- | components/script/dom/gpucommandencoder.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/components/script/dom/gpucommandencoder.rs b/components/script/dom/gpucommandencoder.rs index 03b9373f3ab..348e77828f1 100644 --- a/components/script/dom/gpucommandencoder.rs +++ b/components/script/dom/gpucommandencoder.rs @@ -87,14 +87,14 @@ impl GPUCommandEncoderMethods for GPUCommandEncoder { .insert(DomRoot::from_ref(destination)); self.channel .0 - .send(WebGPURequest::CopyBufferToBuffer( - self.encoder.0, - source.id().0, + .send(WebGPURequest::CopyBufferToBuffer { + command_encoder_id: self.encoder.0, + source_id: source.id().0, source_offset, - destination.id().0, + destination_id: destination.id().0, destination_offset, size, - )) + }) .expect("Failed to send CopyBufferToBuffer"); } @@ -103,12 +103,12 @@ impl GPUCommandEncoderMethods for GPUCommandEncoder { let (sender, receiver) = ipc::channel().unwrap(); self.channel .0 - .send(WebGPURequest::CommandEncoderFinish( + .send(WebGPURequest::CommandEncoderFinish { sender, - self.encoder.0, + command_encoder_id: self.encoder.0, // TODO(zakorgy): We should use `_descriptor` here after it's not empty // and the underlying wgpu-core struct is serializable - )) + }) .expect("Failed to send Finish"); let buffer = receiver.recv().unwrap(); |