OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #ifndef GrGLCaps_DEFINED | 9 #ifndef GrGLCaps_DEFINED |
10 #define GrGLCaps_DEFINED | 10 #define GrGLCaps_DEFINED |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 /** | 47 /** |
48 * The type of MSAA for FBOs supported. Different extensions have different | 48 * The type of MSAA for FBOs supported. Different extensions have different |
49 * semantics of how / when a resolve is performed. | 49 * semantics of how / when a resolve is performed. |
50 */ | 50 */ |
51 enum MSFBOType { | 51 enum MSFBOType { |
52 /** | 52 /** |
53 * no support for MSAA FBOs | 53 * no support for MSAA FBOs |
54 */ | 54 */ |
55 kNone_MSFBOType = 0, | 55 kNone_MSFBOType = 0, |
56 /** | 56 /** |
57 * GL3.0-style MSAA FBO (GL_ARB_framebuffer_object) | 57 * GL3.0-style MSAA FBO (GL_ARB_framebuffer_object). |
58 */ | 58 */ |
59 kDesktop_ARB_MSFBOType, | 59 kDesktop_ARB_MSFBOType, |
60 /** | 60 /** |
61 * earlier GL_EXT_framebuffer* extensions | 61 * earlier GL_EXT_framebuffer* extensions |
62 */ | 62 */ |
63 kDesktop_EXT_MSFBOType, | 63 kDesktop_EXT_MSFBOType, |
64 /** | 64 /** |
| 65 * Similar to kDesktop_ARB but with additional restrictions on glBlitFra
mebuffer. |
| 66 */ |
| 67 kES_3_0_MSFBOType, |
| 68 /** |
65 * GL_APPLE_framebuffer_multisample ES extension | 69 * GL_APPLE_framebuffer_multisample ES extension |
66 */ | 70 */ |
67 kES_Apple_MSFBOType, | 71 kES_Apple_MSFBOType, |
68 /** | 72 /** |
69 * GL_IMG_multisampled_render_to_texture. This variation does not have M
SAA renderbuffers. | 73 * GL_IMG_multisampled_render_to_texture. This variation does not have M
SAA renderbuffers. |
70 * Instead the texture is multisampled when bound to the FBO and then re
solved automatically | 74 * Instead the texture is multisampled when bound to the FBO and then re
solved automatically |
71 * when read. It also defines an alternate value for GL_MAX_SAMPLES (whi
ch we call | 75 * when read. It also defines an alternate value for GL_MAX_SAMPLES (whi
ch we call |
72 * GR_GL_MAX_SAMPLES_IMG). | 76 * GR_GL_MAX_SAMPLES_IMG). |
73 */ | 77 */ |
74 kES_IMG_MsToTexture_MSFBOType, | 78 kES_IMG_MsToTexture_MSFBOType, |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 bool fFragCoordsConventionSupport : 1; | 363 bool fFragCoordsConventionSupport : 1; |
360 bool fVertexArrayObjectSupport : 1; | 364 bool fVertexArrayObjectSupport : 1; |
361 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 365 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
362 bool fIsCoreProfile : 1; | 366 bool fIsCoreProfile : 1; |
363 bool fDiscardFBSupport : 1; | 367 bool fDiscardFBSupport : 1; |
364 | 368 |
365 typedef GrDrawTargetCaps INHERITED; | 369 typedef GrDrawTargetCaps INHERITED; |
366 }; | 370 }; |
367 | 371 |
368 #endif | 372 #endif |
OLD | NEW |