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.