Skip to content

Commit

Permalink
Adjusted push constant limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zhixing committed Feb 1, 2021
1 parent 4a603d3 commit d2c95bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/bevy_wgpu/src/wgpu_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ impl WgpuRenderer {
let trace_path = Some(std::path::Path::new("wgpu_trace"));
#[cfg(not(feature = "trace"))]
let trace_path = None;

let (device, queue) = adapter
.request_device(
&wgpu::DeviceDescriptor {
label: None,
features: wgpu::Features::PUSH_CONSTANTS,
limits: wgpu::Limits::default(),
limits: wgpu::Limits {
max_push_constant_size: 128,
..wgpu::Limits::default()
},
},
trace_path,
)
Expand Down

0 comments on commit d2c95bc

Please sign in to comment.