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 24 matching lines...) Expand all Loading... |
35 typedef float GLclampf; | 35 typedef float GLclampf; |
36 typedef double GLdouble; | 36 typedef double GLdouble; |
37 typedef double GLclampd; | 37 typedef double GLclampd; |
38 typedef void GLvoid; | 38 typedef void GLvoid; |
39 typedef khronos_intptr_t GLintptr; | 39 typedef khronos_intptr_t GLintptr; |
40 typedef khronos_ssize_t GLsizeiptr; | 40 typedef khronos_ssize_t GLsizeiptr; |
41 | 41 |
42 namespace gpu { | 42 namespace gpu { |
43 namespace gles2 { | 43 namespace gles2 { |
44 | 44 |
45 #pragma pack(push, 1) | 45 // Command buffer is GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT byte aligned. |
| 46 #pragma pack(push, GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT) |
46 | 47 |
47 namespace id_namespaces { | 48 namespace id_namespaces { |
48 | 49 |
49 // These are used when contexts share resources. | 50 // These are used when contexts share resources. |
50 enum IdNamespaces { | 51 enum IdNamespaces { |
51 kBuffers, | 52 kBuffers, |
52 kFramebuffers, | 53 kFramebuffers, |
53 kProgramsAndShaders, | 54 kProgramsAndShaders, |
54 kRenderbuffers, | 55 kRenderbuffers, |
55 kTextures, | 56 kTextures, |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 CommandHeader header; | 439 CommandHeader header; |
439 }; | 440 }; |
440 | 441 |
441 #pragma pack(pop) | 442 #pragma pack(pop) |
442 | 443 |
443 } // namespace cmd | 444 } // namespace cmd |
444 } // namespace gles2 | 445 } // namespace gles2 |
445 } // namespace gpu | 446 } // namespace gpu |
446 | 447 |
447 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 448 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |