mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Fix error about capability not supported
This commit is contained in:
parent
480cac7c58
commit
c4e3711156
@ -102,14 +102,14 @@ impl {name} {{
|
||||
|
||||
"#, name = name));
|
||||
|
||||
// checking whether each required capability is supported by the vulkan implementation
|
||||
// checking whether each required capability is enabled in the vulkan device
|
||||
for i in doc.instructions.iter() {
|
||||
if let &parse::Instruction::Capability(ref cap) = i {
|
||||
if let Some(cap) = capability_name(cap) {
|
||||
output.push_str(&format!(r#"
|
||||
if !device.enabled_features().{cap} {{
|
||||
panic!("capability {{:?}} not supported", "{cap}") // FIXME: error
|
||||
//return Err(CapabilityNotSupported);
|
||||
panic!("capability {{:?}} not enabled", "{cap}") // FIXME: error
|
||||
//return Err(CapabilityNotEnabled);
|
||||
}}"#, cap = cap));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user