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> | 8 #include <stdint.h> |
9 | 9 |
10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 ShaderPrecision low_int; | 39 ShaderPrecision low_int; |
40 ShaderPrecision medium_int; | 40 ShaderPrecision medium_int; |
41 ShaderPrecision high_int; | 41 ShaderPrecision high_int; |
42 ShaderPrecision low_float; | 42 ShaderPrecision low_float; |
43 ShaderPrecision medium_float; | 43 ShaderPrecision medium_float; |
44 ShaderPrecision high_float; | 44 ShaderPrecision high_float; |
45 }; | 45 }; |
46 | 46 |
47 Capabilities(); | 47 Capabilities(); |
| 48 Capabilities(const Capabilities& other); |
48 | 49 |
49 template <typename T> | 50 template <typename T> |
50 void VisitStagePrecisions(unsigned stage, | 51 void VisitStagePrecisions(unsigned stage, |
51 PerStagePrecisions* precisions, | 52 PerStagePrecisions* precisions, |
52 const T& visitor) { | 53 const T& visitor) { |
53 visitor(stage, GL_LOW_INT, &precisions->low_int); | 54 visitor(stage, GL_LOW_INT, &precisions->low_int); |
54 visitor(stage, GL_MEDIUM_INT, &precisions->medium_int); | 55 visitor(stage, GL_MEDIUM_INT, &precisions->medium_int); |
55 visitor(stage, GL_HIGH_INT, &precisions->high_int); | 56 visitor(stage, GL_HIGH_INT, &precisions->high_int); |
56 visitor(stage, GL_LOW_FLOAT, &precisions->low_float); | 57 visitor(stage, GL_LOW_FLOAT, &precisions->low_float); |
57 visitor(stage, GL_MEDIUM_FLOAT, &precisions->medium_float); | 58 visitor(stage, GL_MEDIUM_FLOAT, &precisions->medium_float); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 bool surfaceless; | 144 bool surfaceless; |
144 bool flips_vertically; | 145 bool flips_vertically; |
145 | 146 |
146 int major_version; | 147 int major_version; |
147 int minor_version; | 148 int minor_version; |
148 }; | 149 }; |
149 | 150 |
150 } // namespace gpu | 151 } // namespace gpu |
151 | 152 |
152 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 153 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
OLD | NEW |