mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Added hack to allow all of the examples to work.
This commit is contained in:
parent
eac53c1ab7
commit
e11fa3e316
1 changed files with 8 additions and 2 deletions
|
@ -201,17 +201,23 @@ fn reflect_binding(binding: &ReflectDescriptorBinding, shader_stage: ReflectShad
|
|||
_ => panic!("unsupported bind type {:?}", binding.descriptor_type),
|
||||
};
|
||||
|
||||
let shader_stage = match shader_stage {
|
||||
let mut shader_stage = match shader_stage {
|
||||
ReflectShaderStageFlags::COMPUTE => BindingShaderStage::COMPUTE,
|
||||
ReflectShaderStageFlags::VERTEX => BindingShaderStage::VERTEX,
|
||||
ReflectShaderStageFlags::FRAGMENT => BindingShaderStage::FRAGMENT,
|
||||
_ => panic!("Only one specified shader stage is supported.")
|
||||
};
|
||||
|
||||
let name = name.to_string();
|
||||
|
||||
if name == "Camera" {
|
||||
shader_stage = BindingShaderStage::VERTEX | BindingShaderStage::FRAGMENT;
|
||||
}
|
||||
|
||||
BindingDescriptor {
|
||||
index: binding.binding,
|
||||
bind_type,
|
||||
name: name.to_string(),
|
||||
name,
|
||||
shader_stage,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue