Struct asche::Instance [−][src]
pub struct Instance { /* fields omitted */ }
Expand description
Initializes the all Vulkan resources needed to create a device.
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 unsafe fn request_device<LT: Lifetime>(
self,
device_configuration: DeviceConfiguration<'_>
) -> Result<(Device<LT>, Swapchain, Queues), AscheError>
pub unsafe fn request_device<LT: Lifetime>(
self,
device_configuration: DeviceConfiguration<'_>
) -> Result<(Device<LT>, Swapchain, Queues), AscheError>
Requests a new Vulkan device. Returns a device, a swapchain and the queues created.