OpenGL 및 Vulkan 셰이더 생성
Qt는 모든 플랫폼에서 OpenGL 및 Vulkan 구현과의 통합을 지원하므로, 기존의 사용자 인터페이스와 함께 하드웨어 가속 3D 그래픽을 표시할 수 있습니다. 자세한 내용은 다음을 참조하십시오 Qt GUI.
QOpenGLShader 클래스를 사용하면 OpenGL 셰이딩 언어(GLSL) 및 OpenGL/ES 셰이딩 언어(GLSL/ES)로 작성된 OpenGL 셰이더를 컴파일할 수 있습니다. QOpenGLShader와 QOpenGLShaderProgram은 버텍스 및 프래그먼트 셰이더의 컴파일 및 링크 과정에 대한 세부 사항을 사용자가 직접 신경 쓰지 않아도 되도록 해줍니다.
OpenGL 또는 Vulkan 셰이더를 생성하려면:
- File > New File > GLSL 을 선택합니다.

- 생성할 셰이더의 유형을 선택한 다음, ‘ Choose ’를 선택합니다.
- 마법사의 지침에 따라 셰이더 파일을 생성합니다.
- 코드 편집기에서 셰이더 파일을 열고, GLSL, GLSL/ES 또는 Vulkan 호환 GLSL로 셰이더 코드를 작성합니다. 코드 편집기에서는 해당 파일에 대해 구문 강조 표시 및 코드 자동 완성 기능을 제공합니다.
'파일 추가 ' 및 '프로젝트 마법사 사용'항목도 참조하십시오 .
Copyright © The Qt Company Ltd. and other contributors. 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.