Make vk_allocator a singleton
This commit is contained in:
@@ -17,11 +17,12 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "application.h"
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "lobby.h"
|
||||
#include "wivrn_packets.h"
|
||||
#include "../common/version.h"
|
||||
#include "version.h"
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include <utils/strings.h>
|
||||
|
||||
#include "../external/IconsFontAwesome6.h"
|
||||
|
||||
@@ -517,7 +517,7 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript
|
||||
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
|
||||
};
|
||||
|
||||
decoder_output[i].image = image_allocation{image_info, alloc_info};
|
||||
decoder_output[i].image = image_allocation{device, image_info, alloc_info};
|
||||
|
||||
vk::ImageViewCreateInfo image_view_info{
|
||||
.image = vk::Image{decoder_output[i].image},
|
||||
|
||||
@@ -83,7 +83,7 @@ stream_reprojection::stream_reprojection(vk::raii::Device& device, vk::raii::Phy
|
||||
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
|
||||
};
|
||||
|
||||
buffer = buffer_allocation(create_info, alloc_info);
|
||||
buffer = buffer_allocation(device, create_info, alloc_info);
|
||||
void * data = buffer.map();
|
||||
for (size_t i = 0; i < input_images.size(); i++)
|
||||
ubo.push_back(reinterpret_cast<uniform *>(reinterpret_cast<uintptr_t>(data) + i * uniform_size));
|
||||
|
||||
Reference in New Issue
Block a user