このページでは

RenderPassTexture QML Type

pass でレンダリングターゲットとして使用するテクスチャを定義します。詳細...

Import Statement: import QtQuick3D
Since: Qt 6.11
Inherits:

Object3D

プロパティ

詳細な説明

RenderPassTextureは、RenderPass がレンダリングを行うためのオフスクリーンテクスチャを宣言します。このテクスチャは、レンダリングシステムによって自動的に作成および管理されます。そのサイズは、デフォルトでView3D のビューポートに合わせて調整されます。

宣言後は、ColorAttachment (色出力用)またはDepthTextureAttachment (深度出力用)を使用して、テクスチャをパスにアタッチします。生成されたテクスチャには、後続のパスまたはTexture コンポーネントから、RenderOutputProvider を使用してアクセスできます。

// Declare a float color buffer
RenderPassTexture {
    id: hdrColorTexture
    format: RenderPassTexture.RGBA16F
}

RenderPass {
    commands: [
        ColorAttachment {
            name: "color0"
            target: hdrColorTexture
        }
    ]
}

ColorAttachment 、DepthTextureAttachment 、およびRenderOutputProviderも参照してください 。

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

format : enumeration

レンダリングターゲットテクスチャのフォーマットを設定します。

利用可能なフォーマットは以下の通りです:

定数値
RenderPassTexture.Unknown
RenderPassTexture.RGBA8
RenderPassTexture.RGBA16F
RenderPassTexture.RGBA32F
RenderPassTexture.R8
RenderPassTexture.R16
RenderPassTexture.R16F
RenderPassTexture.R32F
RenderPassTexture.Depth16
RenderPassTexture.Depth24
RenderPassTexture.Depth32
RenderPassTexture.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.