Struct asche::Instance [−][src]
pub struct Instance { pub raw: InstanceLoader, // some fields omitted }
Expand description
Initializes the all Vulkan resources needed to create a device.
Fields
raw: InstanceLoader
The raw Vulkan instance.
Implementations
pub fn new(
window_handle: &impl HasRawWindowHandle,
configuration: InstanceConfiguration<'_>
) -> Result<Instance, AscheError>
pub fn new(
window_handle: &impl HasRawWindowHandle,
configuration: InstanceConfiguration<'_>
) -> Result<Instance, AscheError>
Creates a new Instance
.
pub fn request_device(
self,
device_configuration: DeviceConfiguration<'_>
) -> Result<(Device, Swapchain, Queues), AscheError>
pub fn request_device(
self,
device_configuration: DeviceConfiguration<'_>
) -> Result<(Device, Swapchain, Queues), AscheError>
Requests a new Vulkan device. Returns a device, a swapchain and the queues created.