このページでは

DepthTextureAttachment QML Type

pass 用の深度テクスチャアタッチメントを定義します。詳細...

Import Statement: import QtQuick3D
Since: Qt 6.11
Inherits:

Command

プロパティ

詳細な説明

DepthTextureAttachmentは、深度フォーマットを持つRenderPassTexture を、RenderPass の深度バッファとしてアタッチします。DepthStencilAttachment (不透明なレンダリングバッファを使用する)とは異なり、生成された深度データはテクスチャに格納され、後続のパスでRenderOutputProvider を介して読み取ることができます。

RenderPassTexture {
    id: depthTexture
    format: RenderPassTexture.Depth24
}

RenderPass {
    commands: [
        ColorAttachment { name: "color0"; target: colorTexture },
        DepthTextureAttachment { target: depthTexture }
    ]
}

// Expose the depth texture to a material via RenderOutputProvider
Texture {
    textureProvider: RenderOutputProvider {
        textureSource: RenderOutputProvider.UserPassTexture
        renderPass: myRenderPass
    }
}

RenderPassTexture 、DepthStencilAttachment 、およびRenderOutputProviderも参照してください 。

プロパティのドキュメント

target : RenderPassTexture

深度アタッチメントとして使用されるRenderPassTexture です。このテクスチャは、深度に対応したフォーマット(例:Depth16 、Depth24 、Depth32 、またはDepth24Stencil8 )でなければなりません。

© 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.