This commit is contained in:
parent
1dc9da0d61
commit
2590db0a06
8 changed files with 123 additions and 88 deletions
|
@ -16,7 +16,7 @@ pub struct VkDevice {
|
|||
|
||||
impl VkDevice {
|
||||
pub(super) fn new_graphics_device(
|
||||
instance: Arc<VkInstance>,
|
||||
instance: &Arc<VkInstance>,
|
||||
physical_device: &VkPhysicalDevice,
|
||||
queue_family_index: u32,
|
||||
) -> anyhow::Result<Self> {
|
||||
|
@ -56,7 +56,7 @@ impl VkDevice {
|
|||
let swapchain_loader = ash::khr::swapchain::Device::new(&instance.handle, &device);
|
||||
|
||||
Ok(Self {
|
||||
instance,
|
||||
instance: instance.clone(),
|
||||
handle: device,
|
||||
swapchain_loader,
|
||||
queue_family_index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue