Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qandroidplatformvulkanwindow.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QANDROIDPLATFORMVULKANWINDOW_H
6
#
define
QANDROIDPLATFORMVULKANWINDOW_H
7
8
#
if
defined
(
VULKAN_H_
)
&&
!
defined
(
VK_USE_PLATFORM_ANDROID_KHR
)
9
#
error
"vulkan.h included without Android WSI"
10
#
endif
11
12
#
define
VK_USE_PLATFORM_ANDROID_KHR
13
14
#
include
"qandroidplatformvulkaninstance.h"
15
#
include
"qandroidplatformwindow.h"
16
17
#
include
<
QtCore
/
QJniEnvironment
>
18
#
include
<
QtCore
/
QJniObject
>
19
20
QT_BEGIN_NAMESPACE
21
22
class
QAndroidPlatformVulkanWindow
:
public
QAndroidPlatformWindow
23
{
24
public
:
25
explicit
QAndroidPlatformVulkanWindow
(QWindow *window);
26
~
QAndroidPlatformVulkanWindow
();
27
28
void
setGeometry
(
const
QRect &rect)
override
;
29
QSurfaceFormat
format
()
const
override
;
30
31
// Render thread. Creates the VkSurfaceKHR on first use. The window isn't
32
// exposed before a Surface exists, so QRhi always finds one here.
33
VkSurfaceKHR
*
vkSurface
();
34
35
private
:
36
void
destroyWindowSurface
()
override
;
37
// Render-thread-only state.
38
VkSurfaceKHR m_vkSurface =
VK_NULL_HANDLE
;
39
PFN_vkCreateAndroidSurfaceKHR m_createVkSurface =
nullptr
;
40
PFN_vkDestroySurfaceKHR m_destroyVkSurface =
nullptr
;
41
};
42
43
QT_END_NAMESPACE
44
45
#
endif
// QANDROIDPLATFORMVULKANWINDOW_H
QAndroidPlatformVulkanWindow
Definition
qandroidplatformvulkanwindow.h:23
QAndroidPlatformVulkanWindow::~QAndroidPlatformVulkanWindow
~QAndroidPlatformVulkanWindow()
Definition
qandroidplatformvulkanwindow.cpp:25
QAndroidPlatformVulkanWindow::QAndroidPlatformVulkanWindow
QAndroidPlatformVulkanWindow(QWindow *window)
Definition
qandroidplatformvulkanwindow.cpp:20
QAndroidPlatformVulkanWindow::setGeometry
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
Definition
qandroidplatformvulkanwindow.cpp:31
QAndroidPlatformVulkanWindow::vkSurface
VkSurfaceKHR * vkSurface()
Definition
qandroidplatformvulkanwindow.cpp:46
QAndroidPlatformVulkanWindow::format
QSurfaceFormat format() const override
Returns the actual surface format of the window.
Definition
qandroidplatformvulkanwindow.cpp:41
QAndroidPlatformVulkanWindow::destroyWindowSurface
void destroyWindowSurface() override
Definition
qandroidplatformvulkanwindow.cpp:77
QAndroidPlatformWindow
Definition
qandroidplatformwindow.h:41
QAndroidPlatformWindow::QAndroidPlatformWindow
QAndroidPlatformWindow(QWindow *window)
QAndroidPlatformWindow::ensureNativeWindow
void ensureNativeWindow()
Definition
qandroidplatformwindow.cpp:421
QAndroidPlatformWindow::destroySurface
void destroySurface()
Definition
qandroidplatformwindow.cpp:521
QAndroidPlatformWindow::setGeometry
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
Definition
qandroidplatformwindow.cpp:143
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
android
qandroidplatformvulkanwindow.h
Generated on
for Qt by
1.18.0