1#ifndef VULKAN_SWAPCHAINPRESENTMODE
2#define VULKAN_SWAPCHAINPRESENTMODE
4#include <vulkan/vulkan.h>
9namespace Vulkan {
class PhysicalDevice;
class WindowSurface;
namespace SwapchainOptions {
class PresentMode; } }
26 PresentMode(
const PhysicalDevice& realGpu,
const WindowSurface& windowSurface, std::function<VkPresentModeKHR(
const std::vector<VkPresentModeKHR>&)> chooseBestPresentMode = chooseBestPresentMode);
38 const VkPresentModeKHR&
operator+()
const;
53 static VkPresentModeKHR chooseBestPresentMode(
const std::vector<VkPresentModeKHR>& presentModes);
55 VkPresentModeKHR presentMode;
Represents the GPU (or any other device) that will be used with Vulkan to perform computer graphics.
Definition: PhysicalDevice.h:17
The present mode defines how the images of the swapchain are sent to the screen.
Definition: SwapchainPresentMode.h:15
static bool isThereAnAvailablePresentMode(const PhysicalDevice &realGpu, const WindowSurface &windowSurface)
Definition: SwapchainPresentMode.cpp:32
const VkPresentModeKHR & operator+() const
Returns the underlying VkPresentModeKHR.
Definition: SwapchainPresentMode.cpp:26
A window surface is the connection between Vulkan and the OS windows environment.
Definition: WindowSurface.h:13
Types of queue families.
Definition: Animations.h:17