mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[rs] Fixed size in "boids" example
This commit is contained in:
parent
8675a0cf5e
commit
ca15e7c1a3
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user