OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 void Clear(GLbitfield mask) { | 172 void Clear(GLbitfield mask) { |
173 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>(); | 173 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>(); |
174 if (c) { | 174 if (c) { |
175 c->Init(mask); | 175 c->Init(mask); |
176 } | 176 } |
177 } | 177 } |
178 | 178 |
| 179 void ClearBufferfi(GLenum buffer, |
| 180 GLint drawbuffers, |
| 181 GLfloat depth, |
| 182 GLint stencil) { |
| 183 gles2::cmds::ClearBufferfi* c = GetCmdSpace<gles2::cmds::ClearBufferfi>(); |
| 184 if (c) { |
| 185 c->Init(buffer, drawbuffers, depth, stencil); |
| 186 } |
| 187 } |
| 188 |
| 189 void ClearBufferfvImmediate(GLenum buffer, |
| 190 GLint drawbuffers, |
| 191 const GLfloat* value) { |
| 192 const uint32_t size = gles2::cmds::ClearBufferfvImmediate::ComputeSize(); |
| 193 gles2::cmds::ClearBufferfvImmediate* c = |
| 194 GetImmediateCmdSpaceTotalSize<gles2::cmds::ClearBufferfvImmediate>(size); |
| 195 if (c) { |
| 196 c->Init(buffer, drawbuffers, value); |
| 197 } |
| 198 } |
| 199 |
| 200 void ClearBufferivImmediate(GLenum buffer, |
| 201 GLint drawbuffers, |
| 202 const GLint* value) { |
| 203 const uint32_t size = gles2::cmds::ClearBufferivImmediate::ComputeSize(); |
| 204 gles2::cmds::ClearBufferivImmediate* c = |
| 205 GetImmediateCmdSpaceTotalSize<gles2::cmds::ClearBufferivImmediate>(size); |
| 206 if (c) { |
| 207 c->Init(buffer, drawbuffers, value); |
| 208 } |
| 209 } |
| 210 |
| 211 void ClearBufferuivImmediate(GLenum buffer, |
| 212 GLint drawbuffers, |
| 213 const GLuint* value) { |
| 214 const uint32_t size = gles2::cmds::ClearBufferuivImmediate::ComputeSize(); |
| 215 gles2::cmds::ClearBufferuivImmediate* c = |
| 216 GetImmediateCmdSpaceTotalSize<gles2::cmds::ClearBufferuivImmediate>(size); |
| 217 if (c) { |
| 218 c->Init(buffer, drawbuffers, value); |
| 219 } |
| 220 } |
| 221 |
179 void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { | 222 void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { |
180 gles2::cmds::ClearColor* c = GetCmdSpace<gles2::cmds::ClearColor>(); | 223 gles2::cmds::ClearColor* c = GetCmdSpace<gles2::cmds::ClearColor>(); |
181 if (c) { | 224 if (c) { |
182 c->Init(red, green, blue, alpha); | 225 c->Init(red, green, blue, alpha); |
183 } | 226 } |
184 } | 227 } |
185 | 228 |
186 void ClearDepthf(GLclampf depth) { | 229 void ClearDepthf(GLclampf depth) { |
187 gles2::cmds::ClearDepthf* c = GetCmdSpace<gles2::cmds::ClearDepthf>(); | 230 gles2::cmds::ClearDepthf* c = GetCmdSpace<gles2::cmds::ClearDepthf>(); |
188 if (c) { | 231 if (c) { |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 } | 2456 } |
2414 | 2457 |
2415 void BlendBarrierKHR() { | 2458 void BlendBarrierKHR() { |
2416 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 2459 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
2417 if (c) { | 2460 if (c) { |
2418 c->Init(); | 2461 c->Init(); |
2419 } | 2462 } |
2420 } | 2463 } |
2421 | 2464 |
2422 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2465 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |