NativeShaderInfo Struct

struct QShader::NativeShaderInfo

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

공용 변수

QMap<int, int> extraBufferBindings
int flags

상세 설명

해당되는 경우 네이티브 셰이더 코드에 대한 정보를 설명합니다. 이는 특정 셰이더 단계의 특정 셰이더 언어와 관련되며, SPIR-V에서 변환할 때 생성된 셰이더에 "마법" 입력, 출력 또는 리소스가 추가로 도입되는 경우 해당됩니다. 이러한 추가 사항은 원본 소스 코드에 따라 달라질 수 있으므로(예: 다양한 GLSL 언어 구조체 또는 빌트인 사용), 생성된 셰이더 코드에 특정 기능이 추가된 경우 동적 방식으로 표시해야 합니다.

예를 들어 패치별(버텍스별이 아닌) 출력 변수가 있는 테셀레이션 제어 셰이더를 생각해 봅시다. 이 변수는 메탈 컴퓨팅 셰이더가 (다른 셰이더와 마찬가지로) spvPatchOut 버퍼로 출력하는 것으로 변환됩니다. 그러나 패치별 출력 변수를 사용하지 않았다면 이 버퍼는 전혀 존재하지 않을 것입니다. 셰이더 코드가 이러한 버퍼의 존재에 의존한다는 사실은 이 구조체의 데이터로 나타낼 수 있습니다.

참고: 이 API는 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QShader 을 참조하세요.

멤버 변수 문서

QMap<int, int> NativeShaderInfo::extraBufferBindings

int NativeShaderInfo::flags

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