|
@@ -147,6 +147,10 @@ EProfile EDesktopProfile = static_cast<EProfile>(ENoProfile | ECoreProfile | ECo
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
const Versioning* Es300Desktop130 = nullptr;
|
|
const Versioning* Es300Desktop130 = nullptr;
|
|
|
const Versioning* Es310Desktop420 = nullptr;
|
|
const Versioning* Es310Desktop420 = nullptr;
|
|
|
|
|
+#elif defined(GLSLANG_ANGLE)
|
|
|
|
|
+ const Versioning* Es300Desktop130 = nullptr;
|
|
|
|
|
+ const Versioning* Es310Desktop420 = nullptr;
|
|
|
|
|
+ const Versioning* Es310Desktop450 = nullptr;
|
|
|
#else
|
|
#else
|
|
|
const Versioning Es300Desktop130Version[] = { { EEsProfile, 0, 300, 0, nullptr },
|
|
const Versioning Es300Desktop130Version[] = { { EEsProfile, 0, 300, 0, nullptr },
|
|
|
{ EDesktopProfile, 0, 130, 0, nullptr },
|
|
{ EDesktopProfile, 0, 130, 0, nullptr },
|
|
@@ -415,7 +419,7 @@ void AddTabledBuiltin(TString& decls, const BuiltInFunction& function)
|
|
|
// See if the tabled versioning information allows the current version.
|
|
// See if the tabled versioning information allows the current version.
|
|
|
bool ValidVersion(const BuiltInFunction& function, int version, EProfile profile, const SpvVersion& /* spVersion */)
|
|
bool ValidVersion(const BuiltInFunction& function, int version, EProfile profile, const SpvVersion& /* spVersion */)
|
|
|
{
|
|
{
|
|
|
-#ifdef GLSLANG_WEB
|
|
|
|
|
|
|
+#if defined(GLSLANG_WEB) || defined(GLSLANG_ANGLE)
|
|
|
// all entries in table are valid
|
|
// all entries in table are valid
|
|
|
return true;
|
|
return true;
|
|
|
#endif
|
|
#endif
|
|
@@ -499,7 +503,7 @@ TBuiltIns::TBuiltIns()
|
|
|
prefixes[EbtFloat] = "";
|
|
prefixes[EbtFloat] = "";
|
|
|
prefixes[EbtInt] = "i";
|
|
prefixes[EbtInt] = "i";
|
|
|
prefixes[EbtUint] = "u";
|
|
prefixes[EbtUint] = "u";
|
|
|
-#ifndef GLSLANG_WEB
|
|
|
|
|
|
|
+#if !defined(GLSLANG_WEB) && !defined(GLSLANG_ANGLE)
|
|
|
prefixes[EbtFloat16] = "f16";
|
|
prefixes[EbtFloat16] = "f16";
|
|
|
prefixes[EbtInt8] = "i8";
|
|
prefixes[EbtInt8] = "i8";
|
|
|
prefixes[EbtUint8] = "u8";
|
|
prefixes[EbtUint8] = "u8";
|
|
@@ -516,7 +520,9 @@ TBuiltIns::TBuiltIns()
|
|
|
dimMap[Esd3D] = 3;
|
|
dimMap[Esd3D] = 3;
|
|
|
dimMap[EsdCube] = 3;
|
|
dimMap[EsdCube] = 3;
|
|
|
#ifndef GLSLANG_WEB
|
|
#ifndef GLSLANG_WEB
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
dimMap[Esd1D] = 1;
|
|
dimMap[Esd1D] = 1;
|
|
|
|
|
+#endif
|
|
|
dimMap[EsdRect] = 2;
|
|
dimMap[EsdRect] = 2;
|
|
|
dimMap[EsdBuffer] = 1;
|
|
dimMap[EsdBuffer] = 1;
|
|
|
dimMap[EsdSubpass] = 2; // potentially unused for now
|
|
dimMap[EsdSubpass] = 2; // potentially unused for now
|
|
@@ -541,6 +547,9 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
version = 310;
|
|
version = 310;
|
|
|
profile = EEsProfile;
|
|
profile = EEsProfile;
|
|
|
|
|
+#elif defined(GLSLANG_ANGLE)
|
|
|
|
|
+ version = 450;
|
|
|
|
|
+ profile = ECoreProfile;
|
|
|
#endif
|
|
#endif
|
|
|
addTabledBuiltins(version, profile, spvVersion);
|
|
addTabledBuiltins(version, profile, spvVersion);
|
|
|
|
|
|
|
@@ -586,6 +595,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"vec4 fwidthCoarse(vec4 p);"
|
|
"vec4 fwidthCoarse(vec4 p);"
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
TString derivativesAndControl16bits (
|
|
TString derivativesAndControl16bits (
|
|
|
"float16_t dFdx(float16_t);"
|
|
"float16_t dFdx(float16_t);"
|
|
|
"f16vec2 dFdx(f16vec2);"
|
|
"f16vec2 dFdx(f16vec2);"
|
|
@@ -1173,6 +1183,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n"
|
|
"\n"
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
|
(profile != EEsProfile && version >= 430)) {
|
|
(profile != EEsProfile && version >= 430)) {
|
|
@@ -1210,6 +1221,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
if (profile != EEsProfile && version >= 440) {
|
|
if (profile != EEsProfile && version >= 440) {
|
|
|
commonBuiltins.append(
|
|
commonBuiltins.append(
|
|
|
"uint64_t atomicMin(coherent volatile inout uint64_t, uint64_t);"
|
|
"uint64_t atomicMin(coherent volatile inout uint64_t, uint64_t);"
|
|
@@ -1271,7 +1283,8 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"void atomicStore(coherent volatile out double, double, int, int, int);"
|
|
"void atomicStore(coherent volatile out double, double, int, int, int);"
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
|
|
|
|
|
if ((profile == EEsProfile && version >= 300) ||
|
|
if ((profile == EEsProfile && version >= 300) ||
|
|
|
(profile != EEsProfile && version >= 150)) { // GL_ARB_shader_bit_encoding
|
|
(profile != EEsProfile && version >= 150)) { // GL_ARB_shader_bit_encoding
|
|
@@ -1311,6 +1324,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
if (profile != EEsProfile && version >= 150) { // ARB_gpu_shader_fp64
|
|
if (profile != EEsProfile && version >= 150) { // ARB_gpu_shader_fp64
|
|
|
commonBuiltins.append(
|
|
commonBuiltins.append(
|
|
|
"double fma(double, double, double);"
|
|
"double fma(double, double, double);"
|
|
@@ -1319,6 +1333,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"dvec4 fma(dvec4, dvec4, dvec4 );"
|
|
"dvec4 fma(dvec4, dvec4, dvec4 );"
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
|
(profile != EEsProfile && version >= 400)) {
|
|
(profile != EEsProfile && version >= 400)) {
|
|
@@ -1336,6 +1351,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
if (profile != EEsProfile && version >= 150) { // ARB_gpu_shader_fp64
|
|
if (profile != EEsProfile && version >= 150) { // ARB_gpu_shader_fp64
|
|
|
commonBuiltins.append(
|
|
commonBuiltins.append(
|
|
|
"double frexp(double, out int);"
|
|
"double frexp(double, out int);"
|
|
@@ -1353,6 +1369,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
|
|
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
if ((profile == EEsProfile && version >= 300) ||
|
|
if ((profile == EEsProfile && version >= 300) ||
|
|
@@ -1462,6 +1479,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#ifndef GLSLANG_WEB
|
|
#ifndef GLSLANG_WEB
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
//
|
|
//
|
|
|
// Original-style texture functions existing in all stages.
|
|
// Original-style texture functions existing in all stages.
|
|
|
// (Per-stage functions below.)
|
|
// (Per-stage functions below.)
|
|
@@ -1610,6 +1628,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
// Bitfield
|
|
// Bitfield
|
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
@@ -1752,6 +1771,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
// GL_ARB_shader_ballot
|
|
// GL_ARB_shader_ballot
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
|
commonBuiltins.append(
|
|
commonBuiltins.append(
|
|
@@ -3072,6 +3092,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"bool textureFootprintGradClampNV(sampler2D, vec2, vec2, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
|
|
"bool textureFootprintGradClampNV(sampler2D, vec2, vec2, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
if ((profile == EEsProfile && version >= 300 && version < 310) ||
|
|
if ((profile == EEsProfile && version >= 300 && version < 310) ||
|
|
|
(profile != EEsProfile && version >= 150 && version < 450)) { // GL_EXT_shader_integer_mix
|
|
(profile != EEsProfile && version >= 150 && version < 450)) { // GL_EXT_shader_integer_mix
|
|
@@ -3091,6 +3112,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
// GL_AMD_gpu_shader_half_float/Explicit types
|
|
// GL_AMD_gpu_shader_half_float/Explicit types
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
|
commonBuiltins.append(
|
|
commonBuiltins.append(
|
|
@@ -3941,28 +3963,30 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"f64vec3 log2(f64vec3);"
|
|
"f64vec3 log2(f64vec3);"
|
|
|
"f64vec4 log2(f64vec4);"
|
|
"f64vec4 log2(f64vec4);"
|
|
|
"\n");
|
|
"\n");
|
|
|
- }
|
|
|
|
|
- if (profile != EEsProfile && version >= 450) {
|
|
|
|
|
- stageBuiltins[EShLangFragment].append(derivativesAndControl64bits);
|
|
|
|
|
- stageBuiltins[EShLangFragment].append(
|
|
|
|
|
- "float64_t interpolateAtCentroid(float64_t);"
|
|
|
|
|
- "f64vec2 interpolateAtCentroid(f64vec2);"
|
|
|
|
|
- "f64vec3 interpolateAtCentroid(f64vec3);"
|
|
|
|
|
- "f64vec4 interpolateAtCentroid(f64vec4);"
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (profile != EEsProfile && version >= 450) {
|
|
|
|
|
+ stageBuiltins[EShLangFragment].append(derivativesAndControl64bits);
|
|
|
|
|
+ stageBuiltins[EShLangFragment].append(
|
|
|
|
|
+ "float64_t interpolateAtCentroid(float64_t);"
|
|
|
|
|
+ "f64vec2 interpolateAtCentroid(f64vec2);"
|
|
|
|
|
+ "f64vec3 interpolateAtCentroid(f64vec3);"
|
|
|
|
|
+ "f64vec4 interpolateAtCentroid(f64vec4);"
|
|
|
|
|
|
|
|
- "float64_t interpolateAtSample(float64_t, int);"
|
|
|
|
|
- "f64vec2 interpolateAtSample(f64vec2, int);"
|
|
|
|
|
- "f64vec3 interpolateAtSample(f64vec3, int);"
|
|
|
|
|
- "f64vec4 interpolateAtSample(f64vec4, int);"
|
|
|
|
|
|
|
+ "float64_t interpolateAtSample(float64_t, int);"
|
|
|
|
|
+ "f64vec2 interpolateAtSample(f64vec2, int);"
|
|
|
|
|
+ "f64vec3 interpolateAtSample(f64vec3, int);"
|
|
|
|
|
+ "f64vec4 interpolateAtSample(f64vec4, int);"
|
|
|
|
|
|
|
|
- "float64_t interpolateAtOffset(float64_t, f64vec2);"
|
|
|
|
|
- "f64vec2 interpolateAtOffset(f64vec2, f64vec2);"
|
|
|
|
|
- "f64vec3 interpolateAtOffset(f64vec3, f64vec2);"
|
|
|
|
|
- "f64vec4 interpolateAtOffset(f64vec4, f64vec2);"
|
|
|
|
|
|
|
+ "float64_t interpolateAtOffset(float64_t, f64vec2);"
|
|
|
|
|
+ "f64vec2 interpolateAtOffset(f64vec2, f64vec2);"
|
|
|
|
|
+ "f64vec3 interpolateAtOffset(f64vec3, f64vec2);"
|
|
|
|
|
+ "f64vec4 interpolateAtOffset(f64vec4, f64vec2);"
|
|
|
|
|
|
|
|
- "\n");
|
|
|
|
|
|
|
+ "\n");
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
//============================================================================
|
|
//============================================================================
|
|
|
//
|
|
//
|
|
@@ -3978,6 +4002,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
if (spvVersion.vulkan == 0 && IncludeLegacy(version, profile, spvVersion))
|
|
if (spvVersion.vulkan == 0 && IncludeLegacy(version, profile, spvVersion))
|
|
|
stageBuiltins[EShLangVertex].append("vec4 ftransform();");
|
|
stageBuiltins[EShLangVertex].append("vec4 ftransform();");
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
//
|
|
//
|
|
|
// Original-style texture Functions with lod.
|
|
// Original-style texture Functions with lod.
|
|
|
//
|
|
//
|
|
@@ -4037,6 +4062,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
if ((profile != EEsProfile && version >= 150) ||
|
|
if ((profile != EEsProfile && version >= 150) ||
|
|
|
(profile == EEsProfile && version >= 310)) {
|
|
(profile == EEsProfile && version >= 310)) {
|
|
@@ -4057,7 +4083,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"void EndPrimitive();"
|
|
"void EndPrimitive();"
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
|
|
|
|
|
//============================================================================
|
|
//============================================================================
|
|
|
//
|
|
//
|
|
@@ -4117,6 +4143,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
|
|
|
|
|
commonBuiltins.append("void debugPrintfEXT();\n");
|
|
commonBuiltins.append("void debugPrintfEXT();\n");
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
|
// coopMatStoreNV perhaps ought to have "out" on the buf parameter, but
|
|
// coopMatStoreNV perhaps ought to have "out" on the buf parameter, but
|
|
|
// adding it introduces undesirable tempArgs on the stack. What we want
|
|
// adding it introduces undesirable tempArgs on the stack. What we want
|
|
@@ -4240,6 +4267,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
|
|
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
// GL_ARB_derivative_control
|
|
// GL_ARB_derivative_control
|
|
|
if (profile != EEsProfile && version >= 400) {
|
|
if (profile != EEsProfile && version >= 400) {
|
|
@@ -4277,6 +4305,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"bool helperInvocationEXT();"
|
|
"bool helperInvocationEXT();"
|
|
|
"\n");
|
|
"\n");
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
// GL_AMD_shader_explicit_vertex_parameter
|
|
// GL_AMD_shader_explicit_vertex_parameter
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
|
stageBuiltins[EShLangFragment].append(
|
|
stageBuiltins[EShLangFragment].append(
|
|
@@ -4411,12 +4440,14 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"void executeCallableEXT(uint, int);"
|
|
"void executeCallableEXT(uint, int);"
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
//E_SPV_NV_compute_shader_derivatives
|
|
//E_SPV_NV_compute_shader_derivatives
|
|
|
if ((profile == EEsProfile && version >= 320) || (profile != EEsProfile && version >= 450)) {
|
|
if ((profile == EEsProfile && version >= 320) || (profile != EEsProfile && version >= 450)) {
|
|
|
stageBuiltins[EShLangCompute].append(derivativeControls);
|
|
stageBuiltins[EShLangCompute].append(derivativeControls);
|
|
|
stageBuiltins[EShLangCompute].append("\n");
|
|
stageBuiltins[EShLangCompute].append("\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
|
stageBuiltins[EShLangCompute].append(derivativesAndControl16bits);
|
|
stageBuiltins[EShLangCompute].append(derivativesAndControl16bits);
|
|
|
stageBuiltins[EShLangCompute].append(derivativesAndControl64bits);
|
|
stageBuiltins[EShLangCompute].append(derivativesAndControl64bits);
|
|
@@ -4429,7 +4460,8 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"void writePackedPrimitiveIndices4x8NV(uint, uint);"
|
|
"void writePackedPrimitiveIndices4x8NV(uint, uint);"
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
|
|
|
|
|
//============================================================================
|
|
//============================================================================
|
|
|
//
|
|
//
|
|
@@ -4466,7 +4498,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#ifndef GLSLANG_WEB
|
|
|
|
|
|
|
+#if !defined(GLSLANG_WEB) && !defined(GLSLANG_ANGLE)
|
|
|
if (spvVersion.spv == 0 && IncludeLegacy(version, profile, spvVersion)) {
|
|
if (spvVersion.spv == 0 && IncludeLegacy(version, profile, spvVersion)) {
|
|
|
//
|
|
//
|
|
|
// Matrix state. p. 31, 32, 37, 39, 40.
|
|
// Matrix state. p. 31, 32, 37, 39, 40.
|
|
@@ -4584,7 +4616,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
|
|
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB && !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
//============================================================================
|
|
//============================================================================
|
|
|
//
|
|
//
|
|
@@ -4615,6 +4647,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#ifndef GLSLANG_WEB
|
|
#ifndef GLSLANG_WEB
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
//============================================================================
|
|
//============================================================================
|
|
|
//
|
|
//
|
|
|
// Define the interface to the mesh/task shader.
|
|
// Define the interface to the mesh/task shader.
|
|
@@ -4702,6 +4735,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
"\n");
|
|
"\n");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
//============================================================================
|
|
//============================================================================
|
|
|
//
|
|
//
|
|
@@ -5372,6 +5406,15 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
|
|
|
|
|
#ifndef GLSLANG_WEB
|
|
#ifndef GLSLANG_WEB
|
|
|
|
|
|
|
|
|
|
+ if ((profile != EEsProfile && version >= 140) ||
|
|
|
|
|
+ (profile == EEsProfile && version >= 310)) {
|
|
|
|
|
+ stageBuiltins[EShLangFragment].append(
|
|
|
|
|
+ "flat in highp int gl_DeviceIndex;" // GL_EXT_device_group
|
|
|
|
|
+ "flat in highp int gl_ViewIndex;" // GL_EXT_multiview
|
|
|
|
|
+ "\n");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
// GL_ARB_shader_ballot
|
|
// GL_ARB_shader_ballot
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
|
const char* ballotDecls =
|
|
const char* ballotDecls =
|
|
@@ -5402,14 +5445,6 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
stageBuiltins[EShLangTaskNV] .append(ballotDecls);
|
|
stageBuiltins[EShLangTaskNV] .append(ballotDecls);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if ((profile != EEsProfile && version >= 140) ||
|
|
|
|
|
- (profile == EEsProfile && version >= 310)) {
|
|
|
|
|
- stageBuiltins[EShLangFragment].append(
|
|
|
|
|
- "flat in highp int gl_DeviceIndex;" // GL_EXT_device_group
|
|
|
|
|
- "flat in highp int gl_ViewIndex;" // GL_EXT_multiview
|
|
|
|
|
- "\n");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// GL_KHR_shader_subgroup
|
|
// GL_KHR_shader_subgroup
|
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
|
(profile != EEsProfile && version >= 140)) {
|
|
(profile != EEsProfile && version >= 140)) {
|
|
@@ -5613,6 +5648,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
stageBuiltins[EShLangCallable].append(callableDecls);
|
|
stageBuiltins[EShLangCallable].append(callableDecls);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if ((profile != EEsProfile && version >= 140)) {
|
|
if ((profile != EEsProfile && version >= 140)) {
|
|
|
const char *deviceIndex =
|
|
const char *deviceIndex =
|
|
|
"in highp int gl_DeviceIndex;" // GL_EXT_device_group
|
|
"in highp int gl_DeviceIndex;" // GL_EXT_device_group
|
|
@@ -5625,12 +5661,6 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
stageBuiltins[EShLangMiss].append(deviceIndex);
|
|
stageBuiltins[EShLangMiss].append(deviceIndex);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (version >= 300 /* both ES and non-ES */) {
|
|
|
|
|
- stageBuiltins[EShLangFragment].append(
|
|
|
|
|
- "flat in highp uint gl_ViewID_OVR;" // GL_OVR_multiview, GL_OVR_multiview2
|
|
|
|
|
- "\n");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
if ((profile != EEsProfile && version >= 420) ||
|
|
if ((profile != EEsProfile && version >= 420) ||
|
|
|
(profile == EEsProfile && version >= 310)) {
|
|
(profile == EEsProfile && version >= 310)) {
|
|
|
commonBuiltins.append("const int gl_ScopeDevice = 1;\n");
|
|
commonBuiltins.append("const int gl_ScopeDevice = 1;\n");
|
|
@@ -5654,7 +5684,15 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|
|
commonBuiltins.append("const int gl_StorageSemanticsImage = 0x800;\n");
|
|
commonBuiltins.append("const int gl_StorageSemanticsImage = 0x800;\n");
|
|
|
commonBuiltins.append("const int gl_StorageSemanticsOutput = 0x1000;\n");
|
|
commonBuiltins.append("const int gl_StorageSemanticsOutput = 0x1000;\n");
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
+
|
|
|
|
|
+ if (version >= 300 /* both ES and non-ES */) {
|
|
|
|
|
+ stageBuiltins[EShLangFragment].append(
|
|
|
|
|
+ "flat in highp uint gl_ViewID_OVR;" // GL_OVR_multiview, GL_OVR_multiview2
|
|
|
|
|
+ "\n");
|
|
|
|
|
+ }
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
|
|
|
|
|
// printf("%s\n", commonBuiltins.c_str());
|
|
// printf("%s\n", commonBuiltins.c_str());
|
|
|
// printf("%s\n", stageBuiltins[EShLangFragment].c_str());
|
|
// printf("%s\n", stageBuiltins[EShLangFragment].c_str());
|
|
@@ -5672,13 +5710,16 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
|
|
|
//
|
|
//
|
|
|
|
|
|
|
|
// enumerate all the types
|
|
// enumerate all the types
|
|
|
|
|
+ const TBasicType bTypes[] = { EbtFloat, EbtInt, EbtUint,
|
|
|
|
|
+#if !defined(GLSLANG_WEB) && !defined(GLSLANG_ANGLE)
|
|
|
|
|
+ EbtFloat16
|
|
|
|
|
+#endif
|
|
|
|
|
+ };
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
- const TBasicType bTypes[] = { EbtFloat, EbtInt, EbtUint };
|
|
|
|
|
bool skipBuffer = true;
|
|
bool skipBuffer = true;
|
|
|
bool skipCubeArrayed = true;
|
|
bool skipCubeArrayed = true;
|
|
|
const int image = 0;
|
|
const int image = 0;
|
|
|
#else
|
|
#else
|
|
|
- const TBasicType bTypes[] = { EbtFloat, EbtInt, EbtUint, EbtFloat16 };
|
|
|
|
|
bool skipBuffer = (profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 140);
|
|
bool skipBuffer = (profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 140);
|
|
|
bool skipCubeArrayed = (profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 130);
|
|
bool skipCubeArrayed = (profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 130);
|
|
|
for (int image = 0; image <= 1; ++image) // loop over "bool" image vs sampler
|
|
for (int image = 0; image <= 1; ++image) // loop over "bool" image vs sampler
|
|
@@ -5703,8 +5744,13 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
|
|
|
for (int arrayed = 0; arrayed <= 1; ++arrayed) { // loop over "bool" arrayed or not
|
|
for (int arrayed = 0; arrayed <= 1; ++arrayed) { // loop over "bool" arrayed or not
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
for (int dim = Esd2D; dim <= EsdCube; ++dim) { // 2D, 3D, and Cube
|
|
for (int dim = Esd2D; dim <= EsdCube; ++dim) { // 2D, 3D, and Cube
|
|
|
|
|
+#else
|
|
|
|
|
+#if defined(GLSLANG_ANGLE)
|
|
|
|
|
+ // TODO: what is subpass?
|
|
|
|
|
+ for (int dim = Esd2D; dim < EsdSubpass; ++dim) { // 2D, ..., buffer
|
|
|
#else
|
|
#else
|
|
|
for (int dim = Esd1D; dim < EsdNumDims; ++dim) { // 1D, ..., buffer, subpass
|
|
for (int dim = Esd1D; dim < EsdNumDims; ++dim) { // 1D, ..., buffer, subpass
|
|
|
|
|
+#endif
|
|
|
if (dim == EsdSubpass && spvVersion.vulkan == 0)
|
|
if (dim == EsdSubpass && spvVersion.vulkan == 0)
|
|
|
continue;
|
|
continue;
|
|
|
if (dim == EsdSubpass && (image || shadow || arrayed))
|
|
if (dim == EsdSubpass && (image || shadow || arrayed))
|
|
@@ -6125,6 +6171,9 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
profile = EEsProfile;
|
|
profile = EEsProfile;
|
|
|
version = 310;
|
|
version = 310;
|
|
|
|
|
+#elif defined(GLSLANG_ANGLE)
|
|
|
|
|
+ profile = ECoreProfile;
|
|
|
|
|
+ version = 450;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
//
|
|
@@ -6201,7 +6250,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
|
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
// loop over 16-bit floating-point texel addressing
|
|
// loop over 16-bit floating-point texel addressing
|
|
|
-#ifdef GLSLANG_WEB
|
|
|
|
|
|
|
+#if defined(GLSLANG_WEB) || defined(GLSLANG_ANGLE)
|
|
|
const int f16TexAddr = 0;
|
|
const int f16TexAddr = 0;
|
|
|
#else
|
|
#else
|
|
|
for (int f16TexAddr = 0; f16TexAddr <= 1; ++f16TexAddr)
|
|
for (int f16TexAddr = 0; f16TexAddr <= 1; ++f16TexAddr)
|
|
@@ -6214,7 +6263,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
|
|
|
totalDims--;
|
|
totalDims--;
|
|
|
}
|
|
}
|
|
|
// loop over "bool" lod clamp
|
|
// loop over "bool" lod clamp
|
|
|
-#ifdef GLSLANG_WEB
|
|
|
|
|
|
|
+#if defined(GLSLANG_WEB) || defined(GLSLANG_ANGLE)
|
|
|
const int lodClamp = 0;
|
|
const int lodClamp = 0;
|
|
|
#else
|
|
#else
|
|
|
for (int lodClamp = 0; lodClamp <= 1 ;++lodClamp)
|
|
for (int lodClamp = 0; lodClamp <= 1 ;++lodClamp)
|
|
@@ -6226,7 +6275,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
|
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
// loop over "bool" sparse or not
|
|
// loop over "bool" sparse or not
|
|
|
-#ifdef GLSLANG_WEB
|
|
|
|
|
|
|
+#if defined(GLSLANG_WEB) || defined(GLSLANG_ANGLE)
|
|
|
const int sparse = 0;
|
|
const int sparse = 0;
|
|
|
#else
|
|
#else
|
|
|
for (int sparse = 0; sparse <= 1; ++sparse)
|
|
for (int sparse = 0; sparse <= 1; ++sparse)
|
|
@@ -6281,7 +6330,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
|
|
|
s.append("Offset");
|
|
s.append("Offset");
|
|
|
if (lodClamp)
|
|
if (lodClamp)
|
|
|
s.append("Clamp");
|
|
s.append("Clamp");
|
|
|
- if (lodClamp || sparse)
|
|
|
|
|
|
|
+ if (lodClamp != 0 || sparse)
|
|
|
s.append("ARB");
|
|
s.append("ARB");
|
|
|
s.append("(");
|
|
s.append("(");
|
|
|
|
|
|
|
@@ -6381,7 +6430,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
|
|
|
s.append(");\n");
|
|
s.append(");\n");
|
|
|
|
|
|
|
|
// Add to the per-language set of built-ins
|
|
// Add to the per-language set of built-ins
|
|
|
- if (bias || lodClamp) {
|
|
|
|
|
|
|
+ if (bias || lodClamp != 0) {
|
|
|
stageBuiltins[EShLangFragment].append(s);
|
|
stageBuiltins[EShLangFragment].append(s);
|
|
|
stageBuiltins[EShLangCompute].append(s);
|
|
stageBuiltins[EShLangCompute].append(s);
|
|
|
} else
|
|
} else
|
|
@@ -6410,6 +6459,9 @@ void TBuiltIns::addGatherFunctions(TSampler sampler, const TString& typeName, in
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
profile = EEsProfile;
|
|
profile = EEsProfile;
|
|
|
version = 310;
|
|
version = 310;
|
|
|
|
|
+#elif defined(GLSLANG_ANGLE)
|
|
|
|
|
+ profile = ECoreProfile;
|
|
|
|
|
+ version = 450;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
switch (sampler.dim) {
|
|
switch (sampler.dim) {
|
|
@@ -6653,6 +6705,9 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
version = 310;
|
|
version = 310;
|
|
|
profile = EEsProfile;
|
|
profile = EEsProfile;
|
|
|
|
|
+#elif defined(GLSLANG_ANGLE)
|
|
|
|
|
+ version = 450;
|
|
|
|
|
+ profile = ECoreProfile;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
//
|
|
@@ -7081,6 +7136,7 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
|
|
|
s.append("\n");
|
|
s.append("\n");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
// atomic counters (some in compute below)
|
|
// atomic counters (some in compute below)
|
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
if ((profile == EEsProfile && version >= 310) ||
|
|
|
(profile != EEsProfile && version >= 420)) {
|
|
(profile != EEsProfile && version >= 420)) {
|
|
@@ -7117,6 +7173,7 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
|
|
|
|
|
|
|
|
s.append("\n");
|
|
s.append("\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif // !GLSLANG_ANGLE
|
|
|
|
|
|
|
|
// GL_ARB_cull_distance
|
|
// GL_ARB_cull_distance
|
|
|
if (profile != EEsProfile && version >= 450) {
|
|
if (profile != EEsProfile && version >= 450) {
|
|
@@ -7133,6 +7190,7 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
|
|
|
s.append(builtInConstant);
|
|
s.append(builtInConstant);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+#ifndef GLSLANG_ANGLE
|
|
|
// SPV_NV_mesh_shader
|
|
// SPV_NV_mesh_shader
|
|
|
if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
|
|
if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
|
|
|
snprintf(builtInConstant, maxSize, "const int gl_MaxMeshOutputVerticesNV = %d;", resources.maxMeshOutputVerticesNV);
|
|
snprintf(builtInConstant, maxSize, "const int gl_MaxMeshOutputVerticesNV = %d;", resources.maxMeshOutputVerticesNV);
|
|
@@ -7155,6 +7213,7 @@ void TBuiltIns::initialize(const TBuiltInResource &resources, int version, EProf
|
|
|
|
|
|
|
|
s.append("\n");
|
|
s.append("\n");
|
|
|
}
|
|
}
|
|
|
|
|
+#endif
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
s.append("\n");
|
|
s.append("\n");
|
|
@@ -7239,6 +7298,9 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
#ifdef GLSLANG_WEB
|
|
#ifdef GLSLANG_WEB
|
|
|
version = 310;
|
|
version = 310;
|
|
|
profile = EEsProfile;
|
|
profile = EEsProfile;
|
|
|
|
|
+#elif defined(GLSLANG_ANGLE)
|
|
|
|
|
+ version = 450;
|
|
|
|
|
+ profile = ECoreProfile;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
//
|
|
@@ -7428,7 +7490,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
|
|
|
|
|
case EShLangTessEvaluation:
|
|
case EShLangTessEvaluation:
|
|
|
case EShLangGeometry:
|
|
case EShLangGeometry:
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
SpecialQualifier("gl_Position", EvqPosition, EbvPosition, symbolTable);
|
|
SpecialQualifier("gl_Position", EvqPosition, EbvPosition, symbolTable);
|
|
|
SpecialQualifier("gl_PointSize", EvqPointSize, EbvPointSize, symbolTable);
|
|
SpecialQualifier("gl_PointSize", EvqPointSize, EbvPointSize, symbolTable);
|
|
|
|
|
|
|
@@ -7589,7 +7651,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
BuiltInVariable("gl_WarpIDNV", EbvWarpID, symbolTable);
|
|
BuiltInVariable("gl_WarpIDNV", EbvWarpID, symbolTable);
|
|
|
BuiltInVariable("gl_SMIDNV", EbvSMID, symbolTable);
|
|
BuiltInVariable("gl_SMIDNV", EbvSMID, symbolTable);
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case EShLangFragment:
|
|
case EShLangFragment:
|
|
@@ -8095,7 +8157,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
symbolTable.setFunctionExtensions("helperInvocationEXT", 1, &E_GL_EXT_demote_to_helper_invocation);
|
|
symbolTable.setFunctionExtensions("helperInvocationEXT", 1, &E_GL_EXT_demote_to_helper_invocation);
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
case EShLangCompute:
|
|
case EShLangCompute:
|
|
@@ -8227,10 +8289,10 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
symbolTable.setFunctionExtensions("dFdyCoarse", 1, &E_GL_NV_compute_shader_derivatives);
|
|
symbolTable.setFunctionExtensions("dFdyCoarse", 1, &E_GL_NV_compute_shader_derivatives);
|
|
|
symbolTable.setFunctionExtensions("fwidthCoarse", 1, &E_GL_NV_compute_shader_derivatives);
|
|
symbolTable.setFunctionExtensions("fwidthCoarse", 1, &E_GL_NV_compute_shader_derivatives);
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
-#ifndef GLSLANG_WEB
|
|
|
|
|
|
|
+#if !defined(GLSLANG_WEB) && !defined(GLSLANG_ANGLE)
|
|
|
case EShLangRayGen:
|
|
case EShLangRayGen:
|
|
|
case EShLangIntersect:
|
|
case EShLangIntersect:
|
|
|
case EShLangAnyHit:
|
|
case EShLangAnyHit:
|
|
@@ -9133,7 +9195,7 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
default:
|
|
default:
|
|
|
assert(false && "Language not supported");
|
|
assert(false && "Language not supported");
|
|
|
}
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
|
+#endif // !GLSLANG_WEB
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//
|
|
//
|
|
@@ -9148,6 +9210,10 @@ void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion
|
|
|
void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion& spvVersion, EShLanguage language, TSymbolTable& symbolTable, const TBuiltInResource &resources)
|
|
void TBuiltIns::identifyBuiltIns(int version, EProfile profile, const SpvVersion& spvVersion, EShLanguage language, TSymbolTable& symbolTable, const TBuiltInResource &resources)
|
|
|
{
|
|
{
|
|
|
#ifndef GLSLANG_WEB
|
|
#ifndef GLSLANG_WEB
|
|
|
|
|
+#if defined(GLSLANG_ANGLE)
|
|
|
|
|
+ profile = ECoreProfile;
|
|
|
|
|
+ version = 450;
|
|
|
|
|
+#endif
|
|
|
if (profile != EEsProfile && version >= 430 && version < 440) {
|
|
if (profile != EEsProfile && version >= 430 && version < 440) {
|
|
|
symbolTable.setVariableExtensions("gl_MaxTransformFeedbackBuffers", 1, &E_GL_ARB_enhanced_layouts);
|
|
symbolTable.setVariableExtensions("gl_MaxTransformFeedbackBuffers", 1, &E_GL_ARB_enhanced_layouts);
|
|
|
symbolTable.setVariableExtensions("gl_MaxTransformFeedbackInterleavedComponents", 1, &E_GL_ARB_enhanced_layouts);
|
|
symbolTable.setVariableExtensions("gl_MaxTransformFeedbackInterleavedComponents", 1, &E_GL_ARB_enhanced_layouts);
|