pub struct Feature {
pub name: Option<String>,
pub required: Option<bool>,
pub version: Option<u32>,
pub opengles_version: Option<(u8, u8)>,
}
Expand description
Android uses-feature element.
Fields§
§name: Option<String>
§required: Option<bool>
§version: Option<u32>
The version
field is currently used for the following features:
-
name="android.hardware.vulkan.compute"
: The minimum level of compute features required. See the Android documentation for available levels and the respective Vulkan features required/provided. -
name="android.hardware.vulkan.level"
: The minimum Vulkan requirements. See the Android documentation for available levels and the respective Vulkan features required/provided. -
name="android.hardware.vulkan.version"
: Represents the value of Vulkan’sVkPhysicalDeviceProperties::apiVersion
. See the Android documentation for available levels and the respective Vulkan features required/provided.
opengles_version: Option<(u8, u8)>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Feature
impl<'de> Deserialize<'de> for Feature
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more