Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsgrendererinterface.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
5
7
190{
191}
192
216{
218 Q_UNUSED(resource);
219 return nullptr;
220}
221
231void *QSGRendererInterface::getResource(QQuickWindow *window, const char *resource) const
232{
234 Q_UNUSED(resource);
235 return nullptr;
236}
237
247{
248 switch (api) {
249 case OpenGL:
250 case Direct3D11:
251 case Direct3D12:
252 case Vulkan:
253 case Metal:
254 case Null:
255 return true;
256 default:
257 return false;
258 }
259}
260
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
Resource
\value DeviceResource The resource is a pointer to the graphics device, when applicable.
static bool isApiRhiBased(GraphicsApi api)
virtual void * getResource(QQuickWindow *window, Resource resource) const
Queries a graphics resource in window.
GraphicsApi
\value Unknown An unknown graphics API is in use \value Software The Qt Quick 2D Renderer is in use \...
Combined button and popup list for selecting options.
#define Q_UNUSED(x)
aWidget window() -> setWindowTitle("New Window Title")
[2]