Struct vulkano::RequiresOneOf
source · pub struct RequiresOneOf {
pub api_version: Option<Version>,
pub features: &'static [&'static str],
pub device_extensions: &'static [&'static str],
pub instance_extensions: &'static [&'static str],
}
Expand description
Used in errors to indicate a set of alternatives that needs to be available/enabled to allow a given operation.
Fields§
§api_version: Option<Version>
A minimum Vulkan API version that would allow the operation.
features: &'static [&'static str]
Enabled features that would allow the operation.
device_extensions: &'static [&'static str]
Available/enabled device extensions that would allow the operation.
instance_extensions: &'static [&'static str]
Available/enabled instance extensions that would allow the operation.
Implementations§
Trait Implementations§
source§impl Clone for RequiresOneOf
impl Clone for RequiresOneOf
source§fn clone(&self) -> RequiresOneOf
fn clone(&self) -> RequiresOneOf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RequiresOneOf
impl Debug for RequiresOneOf
source§impl Default for RequiresOneOf
impl Default for RequiresOneOf
source§fn default() -> RequiresOneOf
fn default() -> RequiresOneOf
Returns the “default value” for a type. Read more