이 페이지에서

QShader::NativeShaderInfo Struct

struct QShader::NativeShaderInfo

네이티브 셰이더 코드에 대한 추가 메타데이터. 더 보기...

공개 변수

QMap<int, int> extraBufferBindings
int flags

상세 설명

해당되는 경우 네이티브 셰이더 코드에 대한 정보를 설명합니다. 이는 SPIR-V에서 생성된 셰이더로 변환하는 과정에서 추가적인 "매직" 입력, 출력 또는 리소스가 도입되는 경우, 특정 셰이더 단계에 대한 특정 셰이더 언어와 관련하여 중요해집니다. 이러한 추가는 원본 소스 코드(즉, 다양한 GLSL 언어 구조나 내장 함수의 사용)에 따라 달라질 수 있으므로, 생성된 셰이더 코드에 특정 기능이 추가되었는지 여부를 동적으로 표시해야 합니다.

예를 들어, 패치별(버텍스별이 아닌) 출력 변수를 가진 테셀레이션 제어 셰이더를 생각해 봅시다. 이는 spvPatchOut 버퍼로(다른 것들 중에서도) 출력하는 Metal 컴퓨트 셰이더로 변환됩니다. 하지만 패치별 출력 변수가 사용되지 않았다면 이 버퍼는 아예 존재하지 않을 것입니다. 셰이더 코드가 이러한 버퍼의 존재에 의존하고 있다는 사실은 이 구조체의 데이터를 통해 나타낼 수 있습니다.

참고: 이는 호환성 보장이 제한된 RHI API입니다. 자세한 내용은 QShader 를 참조하십시오.

멤버 변수 설명서

QMap<int, int> NativeShaderInfo::extraBufferBindings

int NativeShaderInfo::flags

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