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.

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.

impl Drop for Instance
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more