Struct vulkano::instance::ApplicationInfo
source · pub struct ApplicationInfo<'a> {
pub application_name: Option<Cow<'a, str>>,
pub application_version: Option<Version>,
pub engine_name: Option<Cow<'a, str>>,
pub engine_version: Option<Version>,
}
Expand description
Information that can be given to the Vulkan driver so that it can identify your application.
Fields
application_name: Option<Cow<'a, str>>
Name of the application.
application_version: Option<Version>
An opaque number that contains the version number of the application.
engine_name: Option<Cow<'a, str>>
Name of the engine used to power the application.
engine_version: Option<Version>
An opaque number that contains the version number of the engine.
Implementations
sourceimpl<'a> ApplicationInfo<'a>
impl<'a> ApplicationInfo<'a>
sourcepub fn from_cargo_toml() -> ApplicationInfo<'a>
👎Deprecated: Please use the app_info_from_cargo_toml!
macro instead
pub fn from_cargo_toml() -> ApplicationInfo<'a>
app_info_from_cargo_toml!
macro insteadBuilds an ApplicationInfo
from the information gathered by Cargo.
Panic
- Panics if the required environment variables are missing, which happens if the project wasn’t built by Cargo.
Trait Implementations
sourceimpl<'a> Clone for ApplicationInfo<'a>
impl<'a> Clone for ApplicationInfo<'a>
sourcefn clone(&self) -> ApplicationInfo<'a>
fn clone(&self) -> ApplicationInfo<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for ApplicationInfo<'a>
impl<'a> Debug for ApplicationInfo<'a>
sourceimpl<'a> Default for ApplicationInfo<'a>
impl<'a> Default for ApplicationInfo<'a>
sourcefn default() -> ApplicationInfo<'a>
fn default() -> ApplicationInfo<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ApplicationInfo<'a>
impl<'a> Send for ApplicationInfo<'a>
impl<'a> Sync for ApplicationInfo<'a>
impl<'a> Unpin for ApplicationInfo<'a>
impl<'a> UnwindSafe for ApplicationInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.