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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 bool fVertexArrayObjectSupport : 1; | 370 bool fVertexArrayObjectSupport : 1; |
367 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 371 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
368 bool fIsCoreProfile : 1; | 372 bool fIsCoreProfile : 1; |
369 bool fFixedFunctionSupport : 1; | 373 bool fFixedFunctionSupport : 1; |
370 bool fDiscardFBSupport : 1; | 374 bool fDiscardFBSupport : 1; |
371 | 375 |
372 typedef GrDrawTargetCaps INHERITED; | 376 typedef GrDrawTargetCaps INHERITED; |
373 }; | 377 }; |
374 | 378 |
375 #endif | 379 #endif |
OLD | NEW |