mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
fix formatting
This commit is contained in:
parent
6ffe0696db
commit
46636ed076
2 changed files with 2 additions and 7 deletions
|
@ -412,9 +412,7 @@ mod tests {
|
|||
name: "Camera".into(),
|
||||
bind_type: BindType::Uniform {
|
||||
dynamic: false,
|
||||
property: UniformProperty::Struct(vec![
|
||||
UniformProperty::Mat4
|
||||
]),
|
||||
property: UniformProperty::Struct(vec![UniformProperty::Mat4]),
|
||||
},
|
||||
shader_stage: BindingShaderStage::VERTEX | BindingShaderStage::FRAGMENT,
|
||||
}]
|
||||
|
|
|
@ -180,10 +180,7 @@ where
|
|||
impl WgpuFrom<&BindType> for wgpu::BindingType {
|
||||
fn from(bind_type: &BindType) -> Self {
|
||||
match bind_type {
|
||||
BindType::Uniform {
|
||||
dynamic,
|
||||
..
|
||||
} => wgpu::BindingType::UniformBuffer {
|
||||
BindType::Uniform { dynamic, .. } => wgpu::BindingType::UniformBuffer {
|
||||
dynamic: *dynamic,
|
||||
min_binding_size: bind_type
|
||||
.get_uniform_size()
|
||||
|
|
Loading…
Reference in a new issue