Lines Matching defs:version
33 const char* getGLSLVersionName (GLSLVersion version)
54 return de::getSizedArrayElement<GLSL_VERSION_LAST>(s_names, version);
57 const char* getGLSLVersionDeclaration (GLSLVersion version)
61 "#version 100",
62 "#version 300 es",
63 "#version 310 es",
64 "#version 320 es",
65 "#version 130",
66 "#version 140",
67 "#version 150",
68 "#version 330",
69 "#version 400",
70 "#version 410",
71 "#version 420",
72 "#version 430",
73 "#version 440",
74 "#version 450",
75 "#version 460",
78 return de::getSizedArrayElement<GLSL_VERSION_LAST>(s_decl, version);
81 bool glslVersionUsesInOutQualifiers (GLSLVersion version)
83 return de::inRange<int>(version, GLSL_VERSION_300_ES, GLSL_VERSION_320_ES) || de::inRange<int>(version, GLSL_VERSION_330, GLSL_VERSION_460);
86 bool glslVersionIsES (GLSLVersion version)
89 DE_ASSERT(version != GLSL_VERSION_LAST);
91 if (version == GLSL_VERSION_100_ES ||
92 version == GLSL_VERSION_300_ES ||
93 version == GLSL_VERSION_310_ES ||
94 version == GLSL_VERSION_320_ES)
101 static ApiType getMinAPIForGLSLVersion (GLSLVersion version)
122 return de::getSizedArrayElement<GLSL_VERSION_LAST>(s_minApi, version);
125 bool isGLSLVersionSupported (ContextType type, GLSLVersion version)
127 return contextSupports(type, getMinAPIForGLSLVersion(version));
133 for (int version = GLSL_VERSION_LAST-1; version >= 0; version--)
135 if (isGLSLVersionSupported(type, GLSLVersion(version)))
136 return GLSLVersion(version);