Struct gfx_backend_vulkan::Instance[][src]

pub struct Instance {
    pub raw: Arc<RawInstance>,
    pub extensions: Vec<&'static CStr>,
    pub entry: Entry,
}

Fields

raw: Arc<RawInstance>extensions: Vec<&'static CStr>

Supported extensions of this instance.

entry: Entry

Implementations

Safety

raw_instance must be created using at least the extensions provided by Instance::required_extensions() and the layers provided by Instance::required_extensions(). driver_api_version must match the version used to create raw_instance. extensions must match the extensions used to create raw_instance. raw_instance must be manually destroyed after gfx-hal Instance has been dropped.

Safety

raw_physical_device must be created from self (or from the inner raw handle)

Trait Implementations

Formats the value using the given formatter. Read more

Create a new instance. Read more

Return all available graphics adapters.

Create a new surface. Read more

Destroy a surface, freeing the resources associated with it and releasing it from this graphics API. Read more

Create a new surface from a display plane. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.