ColorAttachment QML Type
レンダリングパス用のカラーアタッチメントを定義します。詳細...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
プロパティ
詳細な説明
ColorAttachment型は、RenderPass のカラーアタッチメントを指定するために使用されます。name プロパティは、レンダリングパス内でそのアタッチメントを識別するために使用されます。RenderPass.AugmentMaterial モードが使用される場合、その名前はフラグメントシェーダー内でname として出力されます。
RenderPass {
// Define a render target texture
RenderPassTexture {
id: colorTexture
format: RenderPassTexture.RGBA16F
}
commands: [
// Define a color attachment using the texture
ColorAttachment {
name: "color0"
target: colorTexture
}
]
}「RenderPassTexture」も参照してください 。
プロパティのドキュメント
name : string
レンダリングパス内でこのカラーアタッチメントを識別するために使用される名前です。materialMode がAugmentMaterial に設定されている場合、この名前はフラグメントシェーダーの出力変数として公開され、カスタムシェーダーコードからこのアタッチメントに書き込むことが可能になります。
target : RenderPassTexture
カラーアタッチメントとして使用されるRenderPassTexture です。テクスチャは、色に対応した形式(例:RGBA8 、RGBA16F )でなければなりません。
© 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.