Migration to a newer API for #1296 (#1507)

This commit is contained in:
Ilya Lakhin 2021-03-14 21:46:39 +07:00 committed by GitHub
parent 24e8d72a4a
commit b5c756298d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ void main() {
} }
} }
let shader = cs::Shader::load(device.clone()).unwrap(); let shader = cs::Shader::load(device.clone()).unwrap();
ComputePipeline::new(device.clone(), &shader.main_entry_point(), &()).unwrap() ComputePipeline::new(device.clone(), &shader.main_entry_point(), &(), None).unwrap()
}); });
let data_buffer = { let data_buffer = {
@ -101,7 +101,7 @@ void main() {
// We can use copy_buffer(), fill_buffer() and some other functions that copies data to // We can use copy_buffer(), fill_buffer() and some other functions that copies data to
// buffer also. // buffer also.
builder builder
.update_buffer(immutable_data_buffer_init, 3) .update_buffer(immutable_data_buffer_init, &3)
.unwrap(); .unwrap();
let command_buffer = builder.build().unwrap(); let command_buffer = builder.build().unwrap();
@ -135,7 +135,7 @@ void main() {
AutoCommandBufferBuilder::primary_one_time_submit(device.clone(), queue.family()).unwrap(); AutoCommandBufferBuilder::primary_one_time_submit(device.clone(), queue.family()).unwrap();
builder builder
.dispatch([1024, 1, 1], pipeline.clone(), set.clone(), ()) .dispatch([1024, 1, 1], pipeline.clone(), set.clone(), (), vec![])
.unwrap(); .unwrap();
let command_buffer = builder.build().unwrap(); let command_buffer = builder.build().unwrap();