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