Skip to content

Commit

Permalink
refactor: optimize push constant size for performance improvements
Browse files Browse the repository at this point in the history
- decrease the `max_push_constant_size` from 256 to 128
  • Loading branch information
falcucci committed Sep 21, 2024
1 parent 5142d1e commit ecfabef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Renderer {
&DeviceDescriptor {
required_features: Self::add_default_required_features(),
required_limits: Limits {
max_push_constant_size: 256,
max_push_constant_size: 128,
..Default::default()
},
label: None,
Expand Down

0 comments on commit ecfabef

Please sign in to comment.