EndStreamPrimitive not supported when there is #extension GL_ARB_gpu_shader5

Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
This commit is contained in:
ZhiqianXia 2022-01-04 10:40:04 +08:00
parent df609a01b3
commit 1b01aaaf29
6 changed files with 135 additions and 11 deletions

View file

@ -4270,7 +4270,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
//
//============================================================================
if (profile != EEsProfile && version >= 400) {
if (profile != EEsProfile && (version >= 400 || version == 150)) {
stageBuiltins[EShLangGeometry].append(
"void EmitStreamVertex(int);"
"void EndStreamPrimitive(int);"