mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
Fixed size in "boids" example
This commit is contained in:
1 parent
10f35360a0
commit
2c2f778dba
1 file changed
+2
-2
@@ -66,7 +66,7 @@ impl framework::Example for Example {
|
||||
visibility: wgpu::ShaderStage::COMPUTE,
|
||||
ty: wgpu::BindingType::UniformBuffer {
|
||||
dynamic: false,
|
||||
min_binding_size: wgpu::BufferSize::new(sim_param_data.len() as _),
|
||||
min_binding_size: wgpu::BufferSize::new((sim_param_data.len()*std::mem::size_of::<f32>()) as _),
|
||||
},
|
||||
count: None,
|
||||
},
|
||||
@@ -151,7 +151,7 @@ impl framework::Example for Example {
|
||||
// create compute pipeline
|
||||
|
||||
let compute_pipeline = device.create_compute_pipeline(&wgpu::ComputePipelineDescriptor {
|
||||
label: None,
|
||||
label: Some("Compute pipeline"),
|
||||
layout: Some(&compute_pipeline_layout),
|
||||
compute_stage: wgpu::ProgrammableStageDescriptor {
|
||||
module: &boids_module,
|
||||
|
||||
Reference in new issue
Block a user