ruaaaa
This commit is contained in:
parent
751f551141
commit
c422b96597
@ -118,6 +118,14 @@ async fn execute_gpu_inner(device: &wgpu::Device, queue: &wgpu::Queue, works: Wo
|
|||||||
mapped_at_creation: false,
|
mapped_at_creation: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let input_buffer_name_len = device.create_buffer_init(
|
||||||
|
&wgpu::util::BufferInitDescriptor {
|
||||||
|
label: Some("input buffer name len"),
|
||||||
|
contents: bytemuck::cast_slice(&[works.team.len() as u32]),
|
||||||
|
usage: wgpu::BufferUsages::STORAGE | wgpu::BufferUsages::MAP_READ,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Instantiates buffer with data (`numbers`).
|
// Instantiates buffer with data (`numbers`).
|
||||||
// Usage allowing the buffer to be:
|
// Usage allowing the buffer to be:
|
||||||
// A storage buffer (can be bound within a bind group and thus available to a shader).
|
// A storage buffer (can be bound within a bind group and thus available to a shader).
|
||||||
|
Loading…
Reference in New Issue
Block a user