QNativeInterface::QSGD3D12Texture Struct
Direct3D 12 テクスチャオブジェクトへのアクセスを提供し、その採用を可能にします。詳細...
| ヘッダー: | #include <QSGTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| 以下のように: | Qt 6.6 以降 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QSGD3D12Texture はNative Interfaces の一部です。
パブリック関数
| QSGD3D12Texture() | |
| QSGD3D12Texture(const QNativeInterface::QSGD3D12Texture &) | |
| QSGD3D12Texture(QNativeInterface::QSGD3D12Texture &&) | |
| virtual void * | nativeTexture() const = 0 |
| QNativeInterface::QSGD3D12Texture & | operator=(QNativeInterface::QSGD3D12Texture &&) |
| QNativeInterface::QSGD3D12Texture & | operator=(const QNativeInterface::QSGD3D12Texture &) |
静的パブリックメンバー
(since 6.6) QSGTexture * | fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
メンバー関数のドキュメント
[constexpr noexcept default] QSGD3D12Texture::QSGD3D12Texture()
QSGD3D12Texture のインスタンスをデフォルトコンストラクタで生成します。
[delete] QSGD3D12Texture::QSGD3D12Texture(const QNativeInterface::QSGD3D12Texture &)
QSGD3D12Texture のインスタンスをコピーして生成します。この関数は削除されています。
[delete] QSGD3D12Texture::QSGD3D12Texture(QNativeInterface::QSGD3D12Texture &&)
QSGD3D12Texture のインスタンスをMoveコンストラクタで生成します。この関数は削除されています。
[static, since 6.6] QSGTexture *QSGD3D12Texture::fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {})
window 用に、既存のDirect 3D 12texture オブジェクトをラップする新しいQSGTexture を作成します。
ネイティブオブジェクトは、結果として生成されるQSGTexture によってラップされますが、所有されるわけではありません。この関数の呼び出し元は、返されたQSGTexture を削除する責任を負いますが、それによって基になるネイティブオブジェクトが破棄されることはありません。
この関数は現在、2D RGBA テクスチャにのみ適しています。
警告: シーングラフがまだ初期化されていない場合、この関数は null を返します。
options を使用して、テクスチャ属性をカスタマイズしてください。ここでは、TextureHasAlphaChannel および TextureHasMipmaps のみが考慮されます。
size は、ピクセル単位のサイズを指定します。
resourceState textureResourceState は、テクスチャリソースの現在の状態を指定する必要があります。
注:この関数は 、シーングラフのレンダリングスレッドで呼び出す必要があります。
この関数は Qt 6.6 で導入されました。
関連項目: QQuickWindow::sceneGraphInitialized()、QSGTexture 、シーングラフ - Metal テクスチャのインポート、およびシーングラフ - Vulkan テクスチャのインポート。
[pure virtual] void *QSGD3D12Texture::nativeTexture() const
ID3D12Texture オブジェクトを返します。
[delete] QNativeInterface::QSGD3D12Texture &QSGD3D12Texture::operator=(QNativeInterface::QSGD3D12Texture &&)
other をこのQSGD3D12Texture インスタンスに割り当てます。この関数は削除されます。
[delete] QNativeInterface::QSGD3D12Texture &QSGD3D12Texture::operator=(const QNativeInterface::QSGD3D12Texture &)
other をこのQSGD3D12Texture インスタンスにコピー代入します。この関数は削除されます。
© 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.