Remove application::get_device()

This commit is contained in:
Patrick Nicolas
2025-08-20 22:11:43 +02:00
parent d18d33a615
commit 1390ade131
3 changed files with 3 additions and 9 deletions
+2 -3
View File
@@ -18,7 +18,6 @@
#pragma once
#include "application.h"
#include "utils/alignment.h"
#include "vk/allocation.h"
#include <fastgltf/tools.hpp>
@@ -115,10 +114,10 @@ public:
}
}
buffer_allocation copy_to_gpu()
buffer_allocation copy_to_gpu(vk::raii::Device & device)
{
buffer_allocation gpu_buffer{
application::get_device(),
device,
vk::BufferCreateInfo{
.size = bytes.size(),
.usage = usage},