Lines Matching defs:version

99     GrGLVersion version = ctxInfo.version();
105 if (version >= GR_GL_VER(3, 2)) {
126 version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_EXT_unpack_subimage");
128 version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_NV_pack_subimage");
133 fWritePixelsRowBytesSupport = version >= GR_GL_VER(2, 0);
134 fReadPixelsRowBytesSupport = version >= GR_GL_VER(2, 0);
151 fTextureBarrierSupport = version >= GR_GL_VER(4,5) ||
161 fSampleLocationsSupport = version >= GR_GL_VER(3,2) ||
164 fSampleLocationsSupport = version >= GR_GL_VER(3,1);
172 if (((GR_IS_GR_GL(standard) && version >= GR_GL_VER(4,3)) ||
173 (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3,0)) ||
186 fUsePrimitiveRestart = version >= GR_GL_VER(3,0);
197 fVertexArrayObjectSupport = version >= GR_GL_VER(3, 0) ||
201 fVertexArrayObjectSupport = version >= GR_GL_VER(3, 0) ||
204 fVertexArrayObjectSupport = version >= GR_GL_VER(2, 0) ||
209 if (GR_IS_GR_GL(standard) && version >= GR_GL_VER(4,3)) {
238 version >= GR_GL_VER(3, 2) ||
243 version >= GR_GL_VER(3, 0) ||
249 fDrawInstancedSupport = version >= GR_GL_VER(2, 0);
253 if (GR_IS_GR_GL_ES(standard) && version < GR_GL_VER(3, 0)) {
259 if (GR_IS_GR_GL_ES(standard) && ctxInfo.isOverCommandBuffer() && version < GR_GL_VER(3, 0)) {
267 if (version >= GR_GL_VER(3, 0)) {
271 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_func_extended")) {
281 if (version >= GR_GL_VER(3, 1) || ctxInfo.hasExtension("GL_ARB_texture_rectangle") ||
295 if (version < GR_GL_VER(1, 3) && !ctxInfo.hasExtension("GL_ARB_texture_border_clamp")) {
300 if (version < GR_GL_VER(3, 2) && !ctxInfo.hasExtension("GL_EXT_texture_border_clamp") &&
311 if (version >= GR_GL_VER(3,3) || ctxInfo.hasExtension("GL_ARB_texture_swizzle")) {
315 if (version >= GR_GL_VER(3,0)) {
326 if (version >= GR_GL_VER(3,0)) {
340 fClearTextureSupport = (version >= GR_GL_VER(4,4) ||
353 fSRGBWriteControl = version >= GR_GL_VER(3, 0) ||
382 (version >= GR_GL_VER(3, 3) ||
388 shaderCaps->fIntegerSupport = version >= GR_GL_VER(3, 0) &&
396 shaderCaps->fShaderDerivativeSupport = version >= GR_GL_VER(3, 0) ||
399 shaderCaps->fIntegerSupport = version >= GR_GL_VER(3, 0) &&
404 shaderCaps->fShaderDerivativeSupport = version >= GR_GL_VER(2, 0) ||
407 shaderCaps->fIntegerSupport = (version >= GR_GL_VER(2, 0));
427 shaderCaps->fRewriteSwitchStatements = version < GR_GL_VER(2, 0); // introduced in WebGL 2
459 if (version >= GR_GL_VER(3,0) ||
465 if (version >= GR_GL_VER(3, 0) ||
472 // The CHROMIUM extension uses the ANGLE version of glBlitFramebuffer and includes its
487 if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_ARB_map_buffer_range")) {
499 } else if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_EXT_map_buffer_range")) {
512 if (version >= GR_GL_VER(2, 1) || ctxInfo.hasExtension("GL_ARB_pixel_buffer_object") ||
519 if (version >= GR_GL_VER(3, 0) ||
525 if (version < GR_GL_VER(3, 0)) {
560 fNPOTTextureTileSupport = version >= GR_GL_VER(3,0) ||
569 fNPOTTextureTileSupport = version >= GR_GL_VER(2,0);
627 if (version >= GR_GL_VER(3, 0) ||
635 fOversizedStencilSupport = version >= GR_GL_VER(3, 0);
640 fOversizedStencilSupport = version >= GR_GL_VER(2, 0);
644 fBaseVertexBaseInstanceSupport = version >= GR_GL_VER(4,2) ||
647 fNativeDrawIndirectSupport = version >= GR_GL_VER(4,0) ||
649 if (version >= GR_GL_VER(4,3) || ctxInfo.hasExtension("GL_ARB_multi_draw_indirect")) {
653 fDrawRangeElementsSupport = version >= GR_GL_VER(2,0);
659 // The indirect structs need to reside in CPU memory for the ANGLE version.
664 fNativeDrawIndirectSupport = (version >= GR_GL_VER(3,1));
669 fDrawRangeElementsSupport = version >= GR_GL_VER(3,0);
678 // The indirect structs need to reside in CPU memory for the WebGL version.
680 fDrawRangeElementsSupport = version >= GR_GL_VER(2,0);
695 fSemaphoreSupport = fFenceSyncSupport = version >= GR_GL_VER(2, 0);
698 (version >= GR_GL_VER(3, 2) || ctxInfo.hasExtension("GL_ARB_sync"))) {
702 (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_APPLE_sync"))) {
718 fHalfFloatVertexAttributeSupport = (version >= GR_GL_VER(3, 0));
720 fHalfFloatVertexAttributeSupport = (version >= GR_GL_VER(3, 0));
723 fHalfFloatVertexAttributeSupport = (version >= GR_GL_VER(2, 0));
729 fProgramBinarySupport = (version >= GR_GL_VER(4, 1));
730 fProgramParameterSupport = (version >= GR_GL_VER(4, 1));
733 (version >= GR_GL_VER(3, 0)) || ctxInfo.hasExtension("GL_OES_get_program_binary");
734 fProgramParameterSupport = (version >= GR_GL_VER(3, 0));
744 version >= GR_GL_VER(3,3) || ctxInfo.hasExtension("GL_ARB_sampler_objects");
746 fSamplerObjectSupport = version >= GR_GL_VER(3,0);
748 fSamplerObjectSupport = version >= GR_GL_VER(2,0);
791 return "#version 110\n";
793 return "#version 130\n";
795 return "#version 140\n";
798 return "#version 150\n";
800 return "#version 150 compatibility\n";
804 return "#version 330\n";
806 return "#version 330 compatibility\n";
810 return "#version 400\n";
812 return "#version 400 compatibility\n";
816 return "#version 420\n";
818 return "#version 420 compatibility\n";
826 // ES2s shader language is based on version 1.20 but is version
828 return "#version 100\n";
830 return "#version 300 es\n";
832 return "#version 310 es\n";
834 return "#version 320 es\n";
839 return "<no version>";
844 ctxInfo.version() < GR_GL_VER(4,1) &&
864 GrGLVersion version = ctxInfo.version();
876 shaderCaps->fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0));
899 shaderCaps->fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0));
947 hasTessellationSupport = version >= GR_GL_VER(4,0) ||
949 } else if (version >= GR_GL_VER(3,2)) {
989 // GL 330 version enable VertexID and Inf in mac platform
1033 shaderCaps->fCanUseDoLoops = version >= GR_GL_VER(2, 0);
1040 if (ctxInfo.version() >= GR_GL_VER(3,0) ||
1056 } else if (ctxInfo.version() >= GR_GL_VER(3,0)) {
1067 if (ctxInfo.version() >= GR_GL_VER(2,0)) {
1113 ctxInfo.version() >= GR_GL_VER(3,0) ||
1130 if (ctxInfo.version() >= GR_GL_VER(3,0) ||
1136 if (ctxInfo.version() >= GR_GL_VER(2,0)) {
1348 GrGLVersion version = ctxInfo.version();
1358 // The EXT version can apply to either GL or GLES.
1359 texStorageSupported = version >= GR_GL_VER(4,2) ||
1363 texStorageSupported = version >= GR_GL_VER(3,0) ||
1366 texStorageSupported = version >= GR_GL_VER(2,0);
1382 (GR_IS_GR_GL(standard) || (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3,0)));
1394 if ((GR_IS_GR_GL_ES(standard) && version < GR_GL_VER(3, 0)) ||
1395 (GR_IS_GR_WEBGL(standard) && version < GR_GL_VER(2, 0))) {
1411 if (version >= GR_GL_VER(3,0) || ctxInfo.hasExtension("GL_OES_rgb8_rgba8") ||
1428 (version >= GR_GL_VER(1, 2) || ctxInfo.hasExtension("GL_EXT_bgra"));
1532 r8Support = version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_ARB_texture_rg");
1534 r8Support = version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_EXT_texture_rg");
1536 r8Support = ctxInfo.version() >= GR_GL_VER(2, 0);
1634 (!fIsCoreProfile || version <= GR_GL_VER(3, 0));
1652 alpha8IsRenderable = ctxInfo.version() >= GR_GL_VER(3, 0) ||
1760 // version of that extension did not add LUMINANCE8, but was added in a later revsion. So
1950 if (version >= GR_GL_VER(3,0)) {
2017 if (version >= GR_GL_VER(4, 2) || ctxInfo.hasExtension("GL_ARB_ES2_compatibility")) {
2097 if (version >= GR_GL_VER(3, 0)) {
2104 if (version >= GR_GL_VER(3, 0)) {
2107 version >= GR_GL_VER(3, 2) ||
2116 if (version >= GR_GL_VER(2, 0)) {
2235 if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_ARB_texture_rg")) {
2245 if (version >= GR_GL_VER(3, 0)) {
2247 r16FRenderTargetSupport = version >= GR_GL_VER(3, 2) ||
2252 if (version >= GR_GL_VER(2, 0)) {
2417 if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_OES_rgb8_rgba8")) {
2477 rg8Support = version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_ARB_texture_rg");
2479 rg8Support = version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_EXT_texture_rg");
2481 rg8Support = version >= GR_GL_VER(2, 0);
2545 (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3, 0))) {
2564 (version >= GR_GL_VER(1, 2) || ctxInfo.hasExtension("GL_EXT_bgra"));
2648 if (version >= GR_GL_VER(4, 2)) {
2715 if (version >= GR_GL_VER(3, 0)) {
2726 if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_EXT_sRGB")) {
2730 if (version < GR_GL_VER(3, 0)) {
2739 if (version >= GR_GL_VER(2, 0) || ctxInfo.hasExtension("GL_EXT_sRGB") ||
2744 if (version < GR_GL_VER(2, 0)) {
2797 if (GR_IS_GR_GL_ES(standard) && version == GR_GL_VER(2,0)) {
2845 if (version >= GR_GL_VER(4, 3) ||
2850 if (version >= GR_GL_VER(3, 0) ||
2930 r16Supported = version >= GR_GL_VER(3, 0) ||
3006 rg16Supported = version >= GR_GL_VER(3, 0) ||
3072 rgba16Support = version >= GR_GL_VER(3, 0);
3144 if (version >= GR_GL_VER(3, 0) || ctxInfo.hasExtension("GL_ARB_texture_float")) {
3154 if (version >= GR_GL_VER(3, 0)) {
3156 rg16FRenderTargetSupport = version >= GR_GL_VER(3, 2) ||
3161 if (version >= GR_GL_VER(2, 0)) {
3265 GrGLVersion version = ctxInfo.version();
3272 (version >= GR_GL_VER(4,2) ||
3274 (GR_IS_GR_GL_ES(standard) && version >= GR_GL_VER(3,0))) {
3676 if (ctxInfo.isOverCommandBuffer() && ctxInfo.version() >= GR_GL_VER(3,0)) {
3791 // Possibly this could be more limited by driver version or HW generation.
3871 // TODO: Once this is fixed we can update the check here to look at a driver version number too.
4111 // were running Android 12 with a driver version of 1.13. We previously had TecnoSpark devices
4114 // all matching gpus regardless of driver version.
4126 // glMemoryBarrier wasn't around until version 4.2.
4127 if (ctxInfo.version() >= GR_GL_VER(4,2)) {
4133 // glMemoryBarrier wasn't around until es version 3.1.
4134 if (ctxInfo.version() >= GR_GL_VER(3,1)) {
4189 ctxInfo.isOverCommandBuffer() && ctxInfo.version() < GR_GL_VER(3, 0);
4334 // It's unclear if the difference is driver version or Bifrost vs Valhall. The workaround is