이 페이지에서

ShaderProgramBuilder QML Type

로드된 그래프에서 셰이더 프로그램 콘텐츠를 생성합니다. 더 보기...

Import Statement: import Qt3D.Render 2.12
In C++: QShaderProgramBuilder
Status: Deprecated

이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.

속성

상세 설명

셰이더 프로그램 빌더는 셰이더 코드를 생성하는 데 사용되는 여러 가지 셰이더 그래프로 구성됩니다.

생성된 셰이더 코드의 캐시가 관리됩니다. 생성된 셰이더는 기본적으로 QStandardPaths::writableLocation(QStandardPaths::TempLocation)에 저장됩니다. 이 경로는 환경 변수 QT3D_WRITABLE_CACHE_PATH를 유효한 쓰기 가능한 경로로 설정하여 재정의할 수 있습니다.

환경 변수 QT3D_DISABLE_SHADER_CACHE를 설정하여 캐시 사용을 비활성화할 수 있습니다.

대부분의 경우, 그래프에 가해진 변경 사항은 Qt 3D 에 의해 감지되며 새로운 캐시 항목이 생성됩니다. 그래프에 포함된 코드 스니펫이 변경된 경우에는 이러한 현상이 발생하지 않습니다. 이를 해결하려면 캐시 디렉터리를 지우거나 환경 변수 QT3D_REBUILD_SHADER_CACHE를 설정하여 셰이더 코드가 다시 생성되도록 강제할 수 있습니다.

속성 설명서

computeShaderCode : string [read-only]

생성된 컴퓨트 셰이더 코드를 저장합니다.

enabledLayers : stringlist

코드 생성 시 이 빌더가 셰이더 그래프에서 활성화할 레이어 목록을 포함합니다.

fragmentShaderCode : string [read-only]

생성된 프래그먼트 셰이더 코드를 저장합니다.

geometryShaderCode : string [read-only]

생성된 지오메트리 셰이더 코드를 포함합니다.

shaderProgram : string

이 빌더가 코드를 생성하는 데 사용하는 셰이더 프로그램을 포함합니다.

tessellationControlShaderCode : string [read-only]

생성된 테셀레이션 제어 셰이더 코드를 포함합니다.

tessellationEvaluationShaderCode : string [read-only]

생성된 테셀레이션 평가 셰이더 코드를 포함합니다.

vertexShaderCode : string [read-only]

생성된 버텍스 셰이더 코드를 저장합니다.

© 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.