QNativeInterface::QSGD3D11Texture Struct
Direct3D 11 テクスチャオブジェクトへのアクセスを提供し、その採用を可能にします。詳細...
| ヘッダー: | #include <QSGTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| 以下のように: | Qt 6.0 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QSGD3D11Texture はNative Interfaces の一部です。
パブリック関数
| QSGD3D11Texture() | |
| QSGD3D11Texture(const QNativeInterface::QSGD3D11Texture &) | |
| QSGD3D11Texture(QNativeInterface::QSGD3D11Texture &&) | |
| virtual void * | nativeTexture() const = 0 |
| QNativeInterface::QSGD3D11Texture & | operator=(QNativeInterface::QSGD3D11Texture &&) |
| QNativeInterface::QSGD3D11Texture & | operator=(const QNativeInterface::QSGD3D11Texture &) |
静的パブリックメンバー
(since 6.0) QSGTexture * | fromNative(void *texture, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
メンバ関数のドキュメント
[constexpr noexcept default] QSGD3D11Texture::QSGD3D11Texture()
QSGD3D11Texture のインスタンスをデフォルトコンストラクタで生成します。
[delete] QSGD3D11Texture::QSGD3D11Texture(const QNativeInterface::QSGD3D11Texture &)
QSGD3D11Texture のインスタンスをコピーして生成します。この関数は削除されています。
[delete] QSGD3D11Texture::QSGD3D11Texture(QNativeInterface::QSGD3D11Texture &&)
QSGD3D11Texture のインスタンスをMoveコンストラクタで生成します。この関数は削除されています。
[static, since 6.0] QSGTexture *QSGD3D11Texture::fromNative(void *texture, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {})
window 用に、既存のDirect 3D 11texture オブジェクトをラップする新しいQSGTexture を作成します。
ネイティブオブジェクトは、生成されたQSGTexture によってラップされますが、所有されるわけではありません。この関数の呼び出し元は、返されたQSGTexture を削除する責任を負いますが、それによって基になるネイティブオブジェクトが破棄されることはありません。
この関数は現在、2D RGBAテクスチャにのみ適しています。
警告: シーングラフがまだ初期化されていない場合、この関数は null を返します。
options を使用して、テクスチャ属性をカスタマイズしてください。ここでは、TextureHasAlphaChannel および TextureHasMipmaps のみが考慮されます。
size ピクセル単位のサイズを指定します。
注:この関数は 、シーングラフのレンダリングスレッドで呼び出す必要があります。
この関数は Qt 6.0 で導入されました。
関連項目: QQuickWindow::sceneGraphInitialized()、QSGTexture 、シーングラフ - Metal テクスチャのインポート、およびシーングラフ - Vulkan テクスチャのインポート。
[pure virtual] void *QSGD3D11Texture::nativeTexture() const
ID3D11Texture2D オブジェクトを返します。
[delete] QNativeInterface::QSGD3D11Texture &QSGD3D11Texture::operator=(QNativeInterface::QSGD3D11Texture &&)
other をこのQSGD3D11Texture インスタンスに割り当てます。この関数は削除されます。
[delete] QNativeInterface::QSGD3D11Texture &QSGD3D11Texture::operator=(const QNativeInterface::QSGD3D11Texture &)
other をこのQSGD3D11Texture インスタンスにコピー代入します。この関数は削除されます。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.