OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 5 #ifndef GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
9 | 11 |
10 // From gl2.h. We want to avoid including gl headers because client-side and | 12 // From gl2.h. We want to avoid including gl headers because client-side and |
11 // service-side headers conflict. | 13 // service-side headers conflict. |
12 #define GL_FRAGMENT_SHADER 0x8B30 | 14 #define GL_FRAGMENT_SHADER 0x8B30 |
13 #define GL_VERTEX_SHADER 0x8B31 | 15 #define GL_VERTEX_SHADER 0x8B31 |
14 #define GL_LOW_FLOAT 0x8DF0 | 16 #define GL_LOW_FLOAT 0x8DF0 |
15 #define GL_MEDIUM_FLOAT 0x8DF1 | 17 #define GL_MEDIUM_FLOAT 0x8DF1 |
16 #define GL_HIGH_FLOAT 0x8DF2 | 18 #define GL_HIGH_FLOAT 0x8DF2 |
17 #define GL_LOW_INT 0x8DF3 | 19 #define GL_LOW_INT 0x8DF3 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 int max_vertex_attribs; | 77 int max_vertex_attribs; |
76 int max_vertex_texture_image_units; | 78 int max_vertex_texture_image_units; |
77 int max_vertex_uniform_vectors; | 79 int max_vertex_uniform_vectors; |
78 int num_compressed_texture_formats; | 80 int num_compressed_texture_formats; |
79 int num_shader_binary_formats; | 81 int num_shader_binary_formats; |
80 int bind_generates_resource_chromium; | 82 int bind_generates_resource_chromium; |
81 | 83 |
82 int max_3d_texture_size; | 84 int max_3d_texture_size; |
83 int max_array_texture_layers; | 85 int max_array_texture_layers; |
84 int max_color_attachments; | 86 int max_color_attachments; |
85 int max_combined_fragment_uniform_components; | 87 int64_t max_combined_fragment_uniform_components; |
86 int max_combined_uniform_blocks; | 88 int max_combined_uniform_blocks; |
87 int max_combined_vertex_uniform_components; | 89 int64_t max_combined_vertex_uniform_components; |
88 int max_draw_buffers; | 90 int max_draw_buffers; |
89 int max_element_index; | 91 int64_t max_element_index; |
90 int max_elements_indices; | 92 int max_elements_indices; |
91 int max_elements_vertices; | 93 int max_elements_vertices; |
92 int max_fragment_input_components; | 94 int max_fragment_input_components; |
93 int max_fragment_uniform_blocks; | 95 int max_fragment_uniform_blocks; |
94 int max_fragment_uniform_components; | 96 int max_fragment_uniform_components; |
95 int max_program_texel_offset; | 97 int max_program_texel_offset; |
96 int max_samples; | 98 int max_samples; |
97 int max_server_wait_timeout; | 99 int64_t max_server_wait_timeout; |
| 100 float max_texture_lod_bias; |
98 int max_transform_feedback_interleaved_components; | 101 int max_transform_feedback_interleaved_components; |
99 int max_transform_feedback_separate_attribs; | 102 int max_transform_feedback_separate_attribs; |
100 int max_transform_feedback_separate_components; | 103 int max_transform_feedback_separate_components; |
101 int max_uniform_block_size; | 104 int64_t max_uniform_block_size; |
102 int max_uniform_buffer_bindings; | 105 int max_uniform_buffer_bindings; |
103 int max_varying_components; | 106 int max_varying_components; |
104 int max_vertex_output_components; | 107 int max_vertex_output_components; |
105 int max_vertex_uniform_blocks; | 108 int max_vertex_uniform_blocks; |
106 int max_vertex_uniform_components; | 109 int max_vertex_uniform_components; |
107 int min_program_texel_offset; | 110 int min_program_texel_offset; |
108 int num_extensions; | 111 int num_extensions; |
109 int num_program_binary_formats; | 112 int num_program_binary_formats; |
110 int uniform_buffer_offset_alignment; | 113 int uniform_buffer_offset_alignment; |
111 | 114 |
(...skipping 17 matching lines...) Expand all Loading... |
129 bool blend_equation_advanced_coherent; | 132 bool blend_equation_advanced_coherent; |
130 bool texture_rg; | 133 bool texture_rg; |
131 | 134 |
132 int major_version; | 135 int major_version; |
133 int minor_version; | 136 int minor_version; |
134 }; | 137 }; |
135 | 138 |
136 } // namespace gpu | 139 } // namespace gpu |
137 | 140 |
138 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 141 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
OLD | NEW |