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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // These are used when contexts share resources. | 50 // These are used when contexts share resources. |
51 enum IdNamespaces { | 51 enum IdNamespaces { |
52 kBuffers, | 52 kBuffers, |
53 kFramebuffers, | 53 kFramebuffers, |
54 kProgramsAndShaders, | 54 kProgramsAndShaders, |
55 kRenderbuffers, | 55 kRenderbuffers, |
56 kTextures, | 56 kTextures, |
57 kQueries, | 57 kQueries, |
58 kVertexArrays, | 58 kVertexArrays, |
59 kNumIdNamespaces | 59 kImageBuffers, |
| 60 // Must be the last entry in this enum. |
| 61 kNumIdNamespaces, |
60 }; | 62 }; |
61 | 63 |
62 // These numbers must not change | 64 // These numbers must not change |
63 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); | 65 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); |
64 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); | 66 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); |
65 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); | 67 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); |
66 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); | 68 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); |
67 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); | 69 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); |
68 | 70 |
69 } // namespace id_namespaces | 71 } // namespace id_namespaces |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 CommandHeader header; | 549 CommandHeader header; |
548 }; | 550 }; |
549 | 551 |
550 #pragma pack(pop) | 552 #pragma pack(pop) |
551 | 553 |
552 } // namespace cmd | 554 } // namespace cmd |
553 } // namespace gles2 | 555 } // namespace gles2 |
554 } // namespace gpu | 556 } // namespace gpu |
555 | 557 |
556 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 558 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |