Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.h

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: address review comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15148 matching lines...) Expand 10 before | Expand all | Expand 10 after
15159 15159
15160 gpu::CommandHeader header; 15160 gpu::CommandHeader header;
15161 }; 15161 };
15162 15162
15163 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, 15163 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4,
15164 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); 15164 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4");
15165 static_assert( 15165 static_assert(
15166 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, 15166 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0,
15167 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); 15167 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0");
15168 15168
15169 struct BindFragDataLocationIndexedEXTBucket {
15170 typedef BindFragDataLocationIndexedEXTBucket ValueType;
15171 static const CommandId kCmdId = kBindFragDataLocationIndexedEXTBucket;
15172 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15173 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15174
15175 static uint32_t ComputeSize() {
15176 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15177 }
15178
15179 void SetHeader() { header.SetCmd<ValueType>(); }
15180
15181 void Init(GLuint _program,
15182 GLuint _colorNumber,
15183 GLuint _index,
15184 uint32_t _name_bucket_id) {
15185 SetHeader();
15186 program = _program;
15187 colorNumber = _colorNumber;
15188 index = _index;
15189 name_bucket_id = _name_bucket_id;
15190 }
15191
15192 void* Set(void* cmd,
15193 GLuint _program,
15194 GLuint _colorNumber,
15195 GLuint _index,
15196 uint32_t _name_bucket_id) {
15197 static_cast<ValueType*>(cmd)
15198 ->Init(_program, _colorNumber, _index, _name_bucket_id);
15199 return NextCmdAddress<ValueType>(cmd);
15200 }
15201
15202 gpu::CommandHeader header;
15203 uint32_t program;
15204 uint32_t colorNumber;
15205 uint32_t index;
15206 uint32_t name_bucket_id;
15207 };
15208
15209 static_assert(sizeof(BindFragDataLocationIndexedEXTBucket) == 20,
15210 "size of BindFragDataLocationIndexedEXTBucket should be 20");
15211 static_assert(
15212 offsetof(BindFragDataLocationIndexedEXTBucket, header) == 0,
15213 "offset of BindFragDataLocationIndexedEXTBucket header should be 0");
15214 static_assert(
15215 offsetof(BindFragDataLocationIndexedEXTBucket, program) == 4,
15216 "offset of BindFragDataLocationIndexedEXTBucket program should be 4");
15217 static_assert(
15218 offsetof(BindFragDataLocationIndexedEXTBucket, colorNumber) == 8,
15219 "offset of BindFragDataLocationIndexedEXTBucket colorNumber should be 8");
15220 static_assert(
15221 offsetof(BindFragDataLocationIndexedEXTBucket, index) == 12,
15222 "offset of BindFragDataLocationIndexedEXTBucket index should be 12");
15223 static_assert(offsetof(BindFragDataLocationIndexedEXTBucket, name_bucket_id) ==
15224 16,
15225 "offset of BindFragDataLocationIndexedEXTBucket name_bucket_id "
15226 "should be 16");
15227
15228 struct BindFragDataLocationEXTBucket {
15229 typedef BindFragDataLocationEXTBucket ValueType;
15230 static const CommandId kCmdId = kBindFragDataLocationEXTBucket;
15231 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15232 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15233
15234 static uint32_t ComputeSize() {
15235 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15236 }
15237
15238 void SetHeader() { header.SetCmd<ValueType>(); }
15239
15240 void Init(GLuint _program, GLuint _colorNumber, uint32_t _name_bucket_id) {
15241 SetHeader();
15242 program = _program;
15243 colorNumber = _colorNumber;
15244 name_bucket_id = _name_bucket_id;
15245 }
15246
15247 void* Set(void* cmd,
15248 GLuint _program,
15249 GLuint _colorNumber,
15250 uint32_t _name_bucket_id) {
15251 static_cast<ValueType*>(cmd)->Init(_program, _colorNumber, _name_bucket_id);
15252 return NextCmdAddress<ValueType>(cmd);
15253 }
15254
15255 gpu::CommandHeader header;
15256 uint32_t program;
15257 uint32_t colorNumber;
15258 uint32_t name_bucket_id;
15259 };
15260
15261 static_assert(sizeof(BindFragDataLocationEXTBucket) == 16,
15262 "size of BindFragDataLocationEXTBucket should be 16");
15263 static_assert(offsetof(BindFragDataLocationEXTBucket, header) == 0,
15264 "offset of BindFragDataLocationEXTBucket header should be 0");
15265 static_assert(offsetof(BindFragDataLocationEXTBucket, program) == 4,
15266 "offset of BindFragDataLocationEXTBucket program should be 4");
15267 static_assert(
15268 offsetof(BindFragDataLocationEXTBucket, colorNumber) == 8,
15269 "offset of BindFragDataLocationEXTBucket colorNumber should be 8");
15270 static_assert(
15271 offsetof(BindFragDataLocationEXTBucket, name_bucket_id) == 12,
15272 "offset of BindFragDataLocationEXTBucket name_bucket_id should be 12");
15273
15274 struct GetFragDataIndexEXT {
15275 typedef GetFragDataIndexEXT ValueType;
15276 static const CommandId kCmdId = kGetFragDataIndexEXT;
15277 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15278 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15279
15280 typedef GLint Result;
15281
15282 static uint32_t ComputeSize() {
15283 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15284 }
15285
15286 void SetHeader() { header.SetCmd<ValueType>(); }
15287
15288 void Init(GLuint _program,
15289 uint32_t _name_bucket_id,
15290 uint32_t _index_shm_id,
15291 uint32_t _index_shm_offset) {
15292 SetHeader();
15293 program = _program;
15294 name_bucket_id = _name_bucket_id;
15295 index_shm_id = _index_shm_id;
15296 index_shm_offset = _index_shm_offset;
15297 }
15298
15299 void* Set(void* cmd,
15300 GLuint _program,
15301 uint32_t _name_bucket_id,
15302 uint32_t _index_shm_id,
15303 uint32_t _index_shm_offset) {
15304 static_cast<ValueType*>(cmd)
15305 ->Init(_program, _name_bucket_id, _index_shm_id, _index_shm_offset);
15306 return NextCmdAddress<ValueType>(cmd);
15307 }
15308
15309 gpu::CommandHeader header;
15310 uint32_t program;
15311 uint32_t name_bucket_id;
15312 uint32_t index_shm_id;
15313 uint32_t index_shm_offset;
15314 };
15315
15316 static_assert(sizeof(GetFragDataIndexEXT) == 20,
15317 "size of GetFragDataIndexEXT should be 20");
15318 static_assert(offsetof(GetFragDataIndexEXT, header) == 0,
15319 "offset of GetFragDataIndexEXT header should be 0");
15320 static_assert(offsetof(GetFragDataIndexEXT, program) == 4,
15321 "offset of GetFragDataIndexEXT program should be 4");
15322 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8,
15323 "offset of GetFragDataIndexEXT name_bucket_id should be 8");
15324 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12,
15325 "offset of GetFragDataIndexEXT index_shm_id should be 12");
15326 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16,
15327 "offset of GetFragDataIndexEXT index_shm_offset should be 16");
15328
15169 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15329 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698