6#include <private/qquickitem_p.h>
7#include <private/qquickwindow_p.h>
8#include <QtCore/private/qnativeinterface_p.h>
13id<MTLTexture> QSGTexturePlatformMetal::nativeTexture()
const
15 if (
auto *tex = m_texture->rhiTexture())
16 return (id<MTLTexture>) quintptr(tex->nativeTexture().object);
20namespace QNativeInterface {
24QSGTexture *QSGMetalTexture::fromNative(id<MTLTexture> texture,
27 QQuickWindow::CreateTextureOptions options)
29 return QQuickWindowPrivate::get(window)->createTextureFromNativeTexture(quint64(texture), 0, size, options);
QT_DEFINE_NATIVE_INTERFACE(QSGMetalTexture)
Combined button and popup list for selecting options.