ShaderProgramBuilder QML Type
로드된 그래프에서 셰이더 프로그램 콘텐츠를 생성합니다. 더 보기...
Import Statement: | import Qt3D.Render 2.8 |
In C++: | QShaderProgramBuilder |
Status: | Deprecated |
속성
- computeShaderCode : string
- enabledLayers : stringlist
- fragmentShaderCode : string
- geometryShaderCode : string
- shaderProgram : string
- tessellationControlShaderCode : string
- tessellationEvaluationShaderCode : string
- vertexShaderCode : string
자세한 설명
셰이더 프로그램 빌더는 셰이더 코드를 생성하는 데 사용되는 여러 가지 셰이더 그래프로 구성됩니다.
생성된 셰이더 코드의 캐시가 유지됩니다. 생성된 셰이더는 기본적으로 QStandardPaths::writableLocation(QStandardPaths::TempLocation))에 저장됩니다. 이 경로는 환경 변수를 유효한 쓰기 가능한 경로로 설정하여 재정의할 수 있습니다.
캐시 사용은 환경 변수 QT3D_DISABLE_SHADER_CACHE를 설정하여 비활성화할 수 있습니다.
대부분의 경우 그래프에 대한 변경 사항은 Qt 3D 에서 감지되며 새 캐시 항목이 생성됩니다. 이런 일이 발생하지 않는 한 가지 경우는 그래프에 포함된 코드 조각이 변경되는 경우입니다. 이 문제를 해결하려면 캐시 디렉터리를 지우거나 환경 변수 QT3D_REBUILD_SHADER_CACHE를 설정하여 셰이더 코드를 강제로 다시 생성할 수 있습니다.
프로퍼티 문서
computeShaderCode : string |
생성된 컴퓨트 셰이더 코드를 보유합니다.
enabledLayers : stringlist |
코드 생성 중 이 빌더가 셰이더 그래프에서 활성화할 레이어 목록을 보유합니다.
fragmentShaderCode : string |
생성된 프래그먼트 셰이더 코드를 보유합니다.
geometryShaderCode : string |
생성된 지오메트리 셰이더 코드를 보유합니다.
shaderProgram : string |
이 빌더가 코드를 생성하는 셰이더 프로그램을 보유합니다.
tessellationControlShaderCode : string |
생성된 테셀레이션 제어 셰이더 코드를 보유합니다.
tessellationEvaluationShaderCode : string |
생성된 테셀레이션 평가 셰이더 코드를 보유합니다.
vertexShaderCode : string |
생성된 버텍스 셰이더 코드를 보유합니다.
© 2025 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.