이 페이지에서

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.