Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
184
208{
210 Q_UNUSED(resource);
211 return nullptr;
212}
213
223void *QSGRendererInterface::getResource(QQuickWindow *window, const char *resource) const
224{
226 Q_UNUSED(resource);
227 return nullptr;
228}
229
239{
240 switch (api) {
241 case OpenGL:
242 case Direct3D11:
243 case Direct3D12:
244 case Vulkan:
245 case Metal:
246 case Null:
247 return true;
248 default:
249 return false;
250 }
251}
252
\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]
QNetworkRequestFactory api
[0]