commit
7d1d9dcd13
@ -412,9 +412,7 @@ mod tests {
|
|||||||
name: "Camera".into(),
|
name: "Camera".into(),
|
||||||
bind_type: BindType::Uniform {
|
bind_type: BindType::Uniform {
|
||||||
dynamic: false,
|
dynamic: false,
|
||||||
property: UniformProperty::Struct(vec![
|
property: UniformProperty::Struct(vec![UniformProperty::Mat4]),
|
||||||
UniformProperty::Mat4
|
|
||||||
]),
|
|
||||||
},
|
},
|
||||||
shader_stage: BindingShaderStage::VERTEX | BindingShaderStage::FRAGMENT,
|
shader_stage: BindingShaderStage::VERTEX | BindingShaderStage::FRAGMENT,
|
||||||
}]
|
}]
|
||||||
|
@ -180,10 +180,7 @@ where
|
|||||||
impl WgpuFrom<&BindType> for wgpu::BindingType {
|
impl WgpuFrom<&BindType> for wgpu::BindingType {
|
||||||
fn from(bind_type: &BindType) -> Self {
|
fn from(bind_type: &BindType) -> Self {
|
||||||
match bind_type {
|
match bind_type {
|
||||||
BindType::Uniform {
|
BindType::Uniform { dynamic, .. } => wgpu::BindingType::UniformBuffer {
|
||||||
dynamic,
|
|
||||||
..
|
|
||||||
} => wgpu::BindingType::UniformBuffer {
|
|
||||||
dynamic: *dynamic,
|
dynamic: *dynamic,
|
||||||
min_binding_size: bind_type
|
min_binding_size: bind_type
|
||||||
.get_uniform_size()
|
.get_uniform_size()
|
||||||
|
Loading…
Reference in New Issue
Block a user