1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef GPU_GLES2_CONFORM_TEST_CONFIG_H_
6 #define GPU_GLES2_CONFORM_TEST_CONFIG_H_
10 #include "base/basictypes.h"
19 bool GetAttrib(EGLint attribute, EGLint* value) const;
22 // Total color component bits in the color buffer.
24 // Bits of Red in the color buffer.
26 // Bits of Green in the color buffer.
28 // Bits of Blue in the color buffer.
30 // Bits of Luminance in the color buffer.
31 EGLint luminance_size_;
32 // Bits of Alpha in the color buffer.
34 // Bits of Alpha Mask in the mask buffer.
35 EGLint alpha_mask_size_;
36 // True if bindable to RGB textures.
37 EGLBoolean bind_to_texture_rgb_;
38 // True if bindable to RGBA textures.
39 EGLBoolean bind_to_texture_rgba_;
41 EGLenum color_buffer_type_;
42 // Any caveats for the configuration.
43 EGLenum config_caveat_;
44 // Unique EGLConfig identifier.
46 // Whether contexts created with this config are conformant.
48 // Bits of Z in the depth buffer.
50 // Frame buffer level.
52 // Maximum width of pbuffer.
53 EGLint max_pbuffer_width_;
54 // Maximum height of pbuffer.
55 EGLint max_pbuffer_height_;
56 // Maximum size of pbuffer.
57 EGLint max_pbuffer_pixels_;
58 // Minimum swap interval.
59 EGLint min_swap_interval_;
60 // Maximum swap interval.
61 EGLint max_swap_interval_;
62 // True if native rendering APIs can render to surface.
63 EGLBoolean native_renderable_;
64 // Handle of corresponding native visual.
65 EGLint native_visual_id_;
66 // Native visual type of the associated visual.
67 EGLint native_visual_type_;
68 // Which client rendering APIs are supported.
69 EGLint renderable_type_;
70 // Number of multisample buffers.
71 EGLint sample_buffers_;
72 // Number of samples per pixel.
74 // Bits of Stencil in the stencil buffer.
76 // Which types of EGL surfaces are supported.
78 // Type of transparency supported
79 EGLenum transparent_type_;
80 // Transparent red value
81 EGLint transparent_red_value_;
82 // Transparent green value
83 EGLint transparent_green_value_;
84 // Transparent blue value
85 EGLint transparent_blue_value_;
87 DISALLOW_COPY_AND_ASSIGN(Config);
92 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_