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

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: rebase Created 5 years 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 15416 matching lines...) Expand 10 before | Expand all | Expand 10 after
15427 15427
15428 gpu::CommandHeader header; 15428 gpu::CommandHeader header;
15429 }; 15429 };
15430 15430
15431 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, 15431 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4,
15432 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); 15432 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4");
15433 static_assert( 15433 static_assert(
15434 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, 15434 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0,
15435 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); 15435 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0");
15436 15436
15437 struct BindFragDataLocationIndexedEXTBucket {
15438 typedef BindFragDataLocationIndexedEXTBucket ValueType;
15439 static const CommandId kCmdId = kBindFragDataLocationIndexedEXTBucket;
15440 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15441 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15442
15443 static uint32_t ComputeSize() {
15444 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15445 }
15446
15447 void SetHeader() { header.SetCmd<ValueType>(); }
15448
15449 void Init(GLuint _program,
15450 GLuint _colorNumber,
15451 GLuint _index,
15452 uint32_t _name_bucket_id) {
15453 SetHeader();
15454 program = _program;
15455 colorNumber = _colorNumber;
15456 index = _index;
15457 name_bucket_id = _name_bucket_id;
15458 }
15459
15460 void* Set(void* cmd,
15461 GLuint _program,
15462 GLuint _colorNumber,
15463 GLuint _index,
15464 uint32_t _name_bucket_id) {
15465 static_cast<ValueType*>(cmd)
15466 ->Init(_program, _colorNumber, _index, _name_bucket_id);
15467 return NextCmdAddress<ValueType>(cmd);
15468 }
15469
15470 gpu::CommandHeader header;
15471 uint32_t program;
15472 uint32_t colorNumber;
15473 uint32_t index;
15474 uint32_t name_bucket_id;
15475 };
15476
15477 static_assert(sizeof(BindFragDataLocationIndexedEXTBucket) == 20,
15478 "size of BindFragDataLocationIndexedEXTBucket should be 20");
15479 static_assert(
15480 offsetof(BindFragDataLocationIndexedEXTBucket, header) == 0,
15481 "offset of BindFragDataLocationIndexedEXTBucket header should be 0");
15482 static_assert(
15483 offsetof(BindFragDataLocationIndexedEXTBucket, program) == 4,
15484 "offset of BindFragDataLocationIndexedEXTBucket program should be 4");
15485 static_assert(
15486 offsetof(BindFragDataLocationIndexedEXTBucket, colorNumber) == 8,
15487 "offset of BindFragDataLocationIndexedEXTBucket colorNumber should be 8");
15488 static_assert(
15489 offsetof(BindFragDataLocationIndexedEXTBucket, index) == 12,
15490 "offset of BindFragDataLocationIndexedEXTBucket index should be 12");
15491 static_assert(offsetof(BindFragDataLocationIndexedEXTBucket, name_bucket_id) ==
15492 16,
15493 "offset of BindFragDataLocationIndexedEXTBucket name_bucket_id "
15494 "should be 16");
15495
15496 struct BindFragDataLocationEXTBucket {
15497 typedef BindFragDataLocationEXTBucket ValueType;
15498 static const CommandId kCmdId = kBindFragDataLocationEXTBucket;
15499 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15500 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15501
15502 static uint32_t ComputeSize() {
15503 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15504 }
15505
15506 void SetHeader() { header.SetCmd<ValueType>(); }
15507
15508 void Init(GLuint _program, GLuint _colorNumber, uint32_t _name_bucket_id) {
15509 SetHeader();
15510 program = _program;
15511 colorNumber = _colorNumber;
15512 name_bucket_id = _name_bucket_id;
15513 }
15514
15515 void* Set(void* cmd,
15516 GLuint _program,
15517 GLuint _colorNumber,
15518 uint32_t _name_bucket_id) {
15519 static_cast<ValueType*>(cmd)->Init(_program, _colorNumber, _name_bucket_id);
15520 return NextCmdAddress<ValueType>(cmd);
15521 }
15522
15523 gpu::CommandHeader header;
15524 uint32_t program;
15525 uint32_t colorNumber;
15526 uint32_t name_bucket_id;
15527 };
15528
15529 static_assert(sizeof(BindFragDataLocationEXTBucket) == 16,
15530 "size of BindFragDataLocationEXTBucket should be 16");
15531 static_assert(offsetof(BindFragDataLocationEXTBucket, header) == 0,
15532 "offset of BindFragDataLocationEXTBucket header should be 0");
15533 static_assert(offsetof(BindFragDataLocationEXTBucket, program) == 4,
15534 "offset of BindFragDataLocationEXTBucket program should be 4");
15535 static_assert(
15536 offsetof(BindFragDataLocationEXTBucket, colorNumber) == 8,
15537 "offset of BindFragDataLocationEXTBucket colorNumber should be 8");
15538 static_assert(
15539 offsetof(BindFragDataLocationEXTBucket, name_bucket_id) == 12,
15540 "offset of BindFragDataLocationEXTBucket name_bucket_id should be 12");
15541
15542 struct GetFragDataIndexEXT {
15543 typedef GetFragDataIndexEXT ValueType;
15544 static const CommandId kCmdId = kGetFragDataIndexEXT;
15545 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15546 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15547
15548 typedef GLint Result;
15549
15550 static uint32_t ComputeSize() {
15551 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15552 }
15553
15554 void SetHeader() { header.SetCmd<ValueType>(); }
15555
15556 void Init(GLuint _program,
15557 uint32_t _name_bucket_id,
15558 uint32_t _index_shm_id,
15559 uint32_t _index_shm_offset) {
15560 SetHeader();
15561 program = _program;
15562 name_bucket_id = _name_bucket_id;
15563 index_shm_id = _index_shm_id;
15564 index_shm_offset = _index_shm_offset;
15565 }
15566
15567 void* Set(void* cmd,
15568 GLuint _program,
15569 uint32_t _name_bucket_id,
15570 uint32_t _index_shm_id,
15571 uint32_t _index_shm_offset) {
15572 static_cast<ValueType*>(cmd)
15573 ->Init(_program, _name_bucket_id, _index_shm_id, _index_shm_offset);
15574 return NextCmdAddress<ValueType>(cmd);
15575 }
15576
15577 gpu::CommandHeader header;
15578 uint32_t program;
15579 uint32_t name_bucket_id;
15580 uint32_t index_shm_id;
15581 uint32_t index_shm_offset;
15582 };
15583
15584 static_assert(sizeof(GetFragDataIndexEXT) == 20,
15585 "size of GetFragDataIndexEXT should be 20");
15586 static_assert(offsetof(GetFragDataIndexEXT, header) == 0,
15587 "offset of GetFragDataIndexEXT header should be 0");
15588 static_assert(offsetof(GetFragDataIndexEXT, program) == 4,
15589 "offset of GetFragDataIndexEXT program should be 4");
15590 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8,
15591 "offset of GetFragDataIndexEXT name_bucket_id should be 8");
15592 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12,
15593 "offset of GetFragDataIndexEXT index_shm_id should be 12");
15594 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16,
15595 "offset of GetFragDataIndexEXT index_shm_offset should be 16");
15596
15437 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15597 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698