Struct vulkano::instance::Instance
[−]
[src]
pub struct Instance { // some fields omitted }
An instance of a Vulkan context. This is the main object that should be created by an application before everything else.
Methods
impl Instance
[src]
fn new<'a, L>(app_infos: Option<&ApplicationInfo>, extensions: &InstanceExtensions, layers: L) -> Result<Arc<Instance>, InstanceCreationError> where L: IntoIterator<Item=&'a &'a str>
Initializes a new instance of Vulkan.
Panic
- Panics if the version numbers passed in
ApplicationInfo
are too large can't be converted into a Vulkan version number. - Panics if the application name or engine name contain a null character.
fn loaded_extensions(&self) -> &InstanceExtensions
Returns the list of extensions that have been loaded.
Trait Implementations
impl Debug for Instance
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl VulkanObject for Instance
[src]
type Object = Instance
The type of the object.
fn internal_object(&self) -> Instance
Returns a reference to the object.