mirror of https://github.com/snes9xgit/snes9x.git
Vulkan: Fix compile issues on Windows because of min/max.
This commit is contained in:
parent
46c6bd7eb4
commit
130942f578
|
@ -105,7 +105,7 @@ bool Context::init_win32(HINSTANCE hinstance, HWND hwnd, int preferred_device)
|
||||||
auto win32_surface_create_info = vk::Win32SurfaceCreateInfoKHR{}
|
auto win32_surface_create_info = vk::Win32SurfaceCreateInfoKHR{}
|
||||||
.setHinstance(hinstance)
|
.setHinstance(hinstance)
|
||||||
.setHwnd(hwnd);
|
.setHwnd(hwnd);
|
||||||
surface = instance->createWin32SurfaceKHRUnique(win32_surface_create_info);
|
surface = instance->createWin32SurfaceKHRUnique(win32_surface_create_info).value;
|
||||||
if (!surface)
|
if (!surface)
|
||||||
return false;
|
return false;
|
||||||
return init(preferred_device);
|
return init(preferred_device);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#endif
|
#endif
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "vulkan/vulkan.hpp"
|
#include "vulkan/vulkan_hpp_wrapper.hpp"
|
||||||
#include "../external/VulkanMemoryAllocator-Hpp/include/vk_mem_alloc.hpp"
|
#include "../external/VulkanMemoryAllocator-Hpp/include/vk_mem_alloc.hpp"
|
||||||
#include "vulkan_swapchain.hpp"
|
#include "vulkan_swapchain.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#include "vulkan/vulkan.hpp"
|
#include "vulkan_hpp_wrapper.hpp"
|
||||||
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
|
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
|
|
@ -0,0 +1,4 @@
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
|
#include "vulkan/vulkan.hpp"
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "vulkan/vulkan.hpp"
|
#include "vulkan/vulkan_hpp_wrapper.hpp"
|
||||||
#include "slang_shader.hpp"
|
#include "slang_shader.hpp"
|
||||||
#include "vulkan_context.hpp"
|
#include "vulkan_context.hpp"
|
||||||
#include "vulkan_pipeline_image.hpp"
|
#include "vulkan_pipeline_image.hpp"
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "vulkan/vulkan.hpp"
|
#include "vulkan/vulkan_hpp_wrapper.hpp"
|
||||||
#include "vulkan/vulkan_handles.hpp"
|
|
||||||
#include "vulkan/vulkan_structs.hpp"
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
namespace Vulkan
|
namespace Vulkan
|
||||||
|
|
Loading…
Reference in New Issue