5#ifndef QVKKHRDISPLAYVULKANINSTANCE_H
6#define QVKKHRDISPLAYVULKANINSTANCE_H
19#include <QtGui/private/qbasicvulkanplatforminstance_p.h>
20#include <QtCore/qsize.h>
21#include <QtCore/qloggingcategory.h>
35 bool supportsPresent(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, QWindow *window)
override;
44 m_createdCallback = callback;
45 m_createdCallbackUserData = userData;
51 QVulkanInstance *m_instance;
53 PFN_vkEnumeratePhysicalDevices m_enumeratePhysicalDevices =
nullptr;
54 PFN_vkGetPhysicalDeviceSurfaceSupportKHR m_getPhysicalDeviceSurfaceSupportKHR =
nullptr;
65 void *m_createdCallbackUserData =
nullptr;
69 uint32_t m_height = 0;
71 uint32_t m_planeStackIndex =
UINT_MAX;
QVkKhrDisplayBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QPlatformTheme * createPlatformTheme(const QString &name) const override
QVkKhrDisplayIntegration(const QStringList ¶meters)
QPlatformVulkanInstance * createPlatformVulkanInstance(QVulkanInstance *instance) const override
~QVkKhrDisplayIntegration()
QPlatformServices * services() const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformNativeInterface * nativeInterface() const override
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
void setVk(QVkKhrDisplayVulkanInstance *inst)
int depth() const override
Reimplement in subclass to return current depth of the screen.
VkSurfaceKHR createSurface(QWindow *window)
bool supportsPresent(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, QWindow *window) override
void presentAboutToBeQueued(QWindow *window) override
void createOrAdoptInstance() override
QVkKhrDisplayVulkanInstance(QVulkanInstance *instance)
void setCreatedCallback(CreatedCallback callback, void *userData)
QSize displaySize() const
void(*)(QVkKhrDisplayVulkanInstance *, void *) CreatedCallback
void setGeometry(const QRect &r) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
void * vulkanSurfacePtr()
QVkKhrDisplayWindow(QWindow *window)
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
static int resourceType(const QByteArray &key)