Rename buffer to encoder in wgpu_command_buffer_copy_* functions

This also regenerates `wgpu.h` and updates uses of
`wgpu_command_buffer_copy_buffer_to_buffer` in `compute/main.c`
This commit is contained in:
yanchith committed 2019-08-20 21:43:49 +02:00
1 parent cb56ce3a0a
commit 3abaed36c3
3 files changed
+72 -72

No files matched your search

+2 -2
View File
@@ -102,7 +102,7 @@ int main(
.todo = 0
});
wgpu_command_buffer_copy_buffer_to_buffer(
wgpu_command_encoder_copy_buffer_to_buffer(
encoder, staging_buffer, 0, storage_buffer, 0, size);
WGPUComputePassId command_pass =
@@ -113,7 +113,7 @@ int main(
wgpu_compute_pass_dispatch(command_pass, numbers_length, 1, 1);
wgpu_compute_pass_end_pass(command_pass);
wgpu_command_buffer_copy_buffer_to_buffer(
wgpu_command_encoder_copy_buffer_to_buffer(
encoder, storage_buffer, 0, staging_buffer, 0, size);
WGPUQueueId queue = wgpu_device_get_queue(device);