mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 03:39:51 +00:00
Add Tess machine dependent built-in variables initialization for GLES 3.2
Add Tess machine dependent built-in variables initialization for GLES 3.2
This commit is contained in:
parent
bd97b6f9f2
commit
786aa339a1
@ -6618,6 +6618,23 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version >= 320) {
|
||||||
|
// tessellation
|
||||||
|
|
||||||
|
snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlImageUniforms = %d;", resources.maxTessControlImageUniforms);
|
||||||
|
s.append(builtInConstant);
|
||||||
|
snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationImageUniforms = %d;", resources.maxTessEvaluationImageUniforms);
|
||||||
|
s.append(builtInConstant);
|
||||||
|
snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlAtomicCounters = %d;", resources.maxTessControlAtomicCounters);
|
||||||
|
s.append(builtInConstant);
|
||||||
|
snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationAtomicCounters = %d;", resources.maxTessEvaluationAtomicCounters);
|
||||||
|
s.append(builtInConstant);
|
||||||
|
snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlAtomicCounterBuffers = %d;", resources.maxTessControlAtomicCounterBuffers);
|
||||||
|
s.append(builtInConstant);
|
||||||
|
snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationAtomicCounterBuffers = %d;", resources.maxTessEvaluationAtomicCounterBuffers);
|
||||||
|
s.append(builtInConstant);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// non-ES profile
|
// non-ES profile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user