OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file defines the GLES2 command buffer commands. | 5 // This file defines the GLES2 command buffer commands. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
9 | 9 |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 kTextures, | 63 kTextures, |
64 kQueries, | 64 kQueries, |
65 kVertexArrays, | 65 kVertexArrays, |
66 kValuebuffers, | 66 kValuebuffers, |
67 kSamplers, | 67 kSamplers, |
68 kTransformFeedbacks, | 68 kTransformFeedbacks, |
69 kSyncs, | 69 kSyncs, |
70 kNumIdNamespaces | 70 kNumIdNamespaces |
71 }; | 71 }; |
72 | 72 |
| 73 enum RangeIdNamespaces { kPaths, kNumRangeIdNamespaces }; |
| 74 |
73 // These numbers must not change | 75 // These numbers must not change |
74 static_assert(kBuffers == 0, "kBuffers should equal 0"); | 76 static_assert(kBuffers == 0, "kBuffers should equal 0"); |
75 static_assert(kFramebuffers == 1, "kFramebuffers should equal 1"); | 77 static_assert(kFramebuffers == 1, "kFramebuffers should equal 1"); |
76 static_assert(kProgramsAndShaders == 2, "kProgramsAndShaders should equal 2"); | 78 static_assert(kProgramsAndShaders == 2, "kProgramsAndShaders should equal 2"); |
77 static_assert(kRenderbuffers == 3, "kRenderbuffers should equal 3"); | 79 static_assert(kRenderbuffers == 3, "kRenderbuffers should equal 3"); |
78 static_assert(kTextures == 4, "kTextures should equal 4"); | 80 static_assert(kTextures == 4, "kTextures should equal 4"); |
| 81 static_assert(kPaths == 0, "kPaths should equal 0"); |
79 | 82 |
80 } // namespace id_namespaces | 83 } // namespace id_namespaces |
81 | 84 |
82 // Used for some glGetXXX commands that return a result through a pointer. We | 85 // Used for some glGetXXX commands that return a result through a pointer. We |
83 // need to know if the command succeeded or not and the size of the result. If | 86 // need to know if the command succeeded or not and the size of the result. If |
84 // the command failed its result size will 0. | 87 // the command failed its result size will 0. |
85 template <typename T> | 88 template <typename T> |
86 struct SizedResult { | 89 struct SizedResult { |
87 typedef T Type; | 90 typedef T Type; |
88 | 91 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); | 354 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); |
352 | 355 |
353 | 356 |
354 #pragma pack(pop) | 357 #pragma pack(pop) |
355 | 358 |
356 } // namespace cmd | 359 } // namespace cmd |
357 } // namespace gles2 | 360 } // namespace gles2 |
358 } // namespace gpu | 361 } // namespace gpu |
359 | 362 |
360 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 363 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |