ColorAttachment QML Type
Definiert eine Farbzuordnung für einen Render-Durchgang. Mehr...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Eigenschaften
Ausführliche Beschreibung
Der Typ „ColorAttachment“ wird verwendet, um einen Farbanhang für ein „ RenderPass “ anzugeben. Die Eigenschaft „ name “ dient dazu, den Anhang innerhalb des Render-Durchgangs zu identifizieren. Wenn der Modus „ RenderPass.AugmentMaterial “ verwendet wird, wird der Name im Fragment-Shader als Ausgabe mit „ name “ bereitgestellt.
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
}
]
}Siehe auch „ RenderPassTexture “.
Dokumentation zu den Eigenschaften
name : string
Der Name, mit dem dieser Farb-Attachment innerhalb des Render-Passes identifiziert wird. Wenn „ materialMode “ auf „ AugmentMaterial “ gesetzt ist, wird dieser Name als Ausgabevariable des Fragment-Shaders bereitgestellt, sodass benutzerdefinierter Shader-Code in diesen Attachment schreiben kann.
target : RenderPassTexture
Die Datei „ RenderPassTexture “, die als Farbanhang verwendet wird. Die Textur muss ein farbkompatibles Format haben (z. B. 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.