Skip to main content

open_device

Function open_device 

Source
pub unsafe fn open_device(
    host: &VulkanHost<'_>,
) -> Result<(Device, Queue), String>
Expand description

Wrap the host’s VkDevice as the device and queue to build a lactea::Engine on. Uses wgpu’s default limits and no optional features.

§Safety

All handles in host are valid Vulkan objects; the device was created with at least the extensions and features of requirements, and outlives the returned device, its queue and everything created from them.