mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +12:00
Remove dependency on C++20 ranges
AppleClang does not support this unfortunately
This commit is contained in:
parent
e87db99a97
commit
ac1f7bc521
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
#include "renderer_vk/renderer_vk.hpp"
|
||||
|
||||
#include <limits>
|
||||
#include <ranges>
|
||||
#include <span>
|
||||
#include <unordered_set>
|
||||
|
||||
|
@ -677,8 +676,8 @@ void RendererVK::initGraphicsContext(SDL_Window* window) {
|
|||
{
|
||||
const auto getImage = [](const vk::UniqueImage& image) -> vk::Image { return image.get(); };
|
||||
std::vector<vk::Image> images;
|
||||
std::ranges::transform(topScreenImages, std::back_inserter(images), getImage);
|
||||
std::ranges::transform(bottomScreenImages, std::back_inserter(images), getImage);
|
||||
std::transform(topScreenImages.begin(), topScreenImages.end(), std::back_inserter(images), getImage);
|
||||
std::transform(bottomScreenImages.begin(), bottomScreenImages.end(), std::back_inserter(images), getImage);
|
||||
|
||||
if (auto [result, imageMemory] = Vulkan::commitImageHeap(device.get(), physicalDevice, images); result == vk::Result::eSuccess) {
|
||||
framebufferMemory = std::move(imageMemory);
|
||||
|
|
Loading…
Add table
Reference in a new issue