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

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

Issue 1272153004: Add glCompressedCopySubTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 12505 matching lines...) Expand 10 before | Expand all | Expand 10 after
12516 "size of CompressedCopyTextureCHROMIUM should be 16"); 12516 "size of CompressedCopyTextureCHROMIUM should be 16");
12517 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, 12517 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0,
12518 "offset of CompressedCopyTextureCHROMIUM header should be 0"); 12518 "offset of CompressedCopyTextureCHROMIUM header should be 0");
12519 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, 12519 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4,
12520 "offset of CompressedCopyTextureCHROMIUM target should be 4"); 12520 "offset of CompressedCopyTextureCHROMIUM target should be 4");
12521 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, 12521 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8,
12522 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); 12522 "offset of CompressedCopyTextureCHROMIUM source_id should be 8");
12523 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, 12523 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12,
12524 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); 12524 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12");
12525 12525
12526 struct CompressedCopySubTextureCHROMIUM {
12527 typedef CompressedCopySubTextureCHROMIUM ValueType;
12528 static const CommandId kCmdId = kCompressedCopySubTextureCHROMIUM;
12529 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
12530 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
12531
12532 static uint32_t ComputeSize() {
12533 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
12534 }
12535
12536 void SetHeader() { header.SetCmd<ValueType>(); }
12537
12538 void Init(GLenum _target,
12539 GLenum _source_id,
12540 GLenum _dest_id,
12541 GLint _xoffset,
12542 GLint _yoffset,
12543 GLint _x,
12544 GLint _y,
12545 GLsizei _width,
12546 GLsizei _height) {
12547 SetHeader();
12548 target = _target;
12549 source_id = _source_id;
12550 dest_id = _dest_id;
12551 xoffset = _xoffset;
12552 yoffset = _yoffset;
12553 x = _x;
12554 y = _y;
12555 width = _width;
12556 height = _height;
12557 }
12558
12559 void* Set(void* cmd,
12560 GLenum _target,
12561 GLenum _source_id,
12562 GLenum _dest_id,
12563 GLint _xoffset,
12564 GLint _yoffset,
12565 GLint _x,
12566 GLint _y,
12567 GLsizei _width,
12568 GLsizei _height) {
12569 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _xoffset,
12570 _yoffset, _x, _y, _width, _height);
12571 return NextCmdAddress<ValueType>(cmd);
12572 }
12573
12574 gpu::CommandHeader header;
12575 uint32_t target;
12576 uint32_t source_id;
12577 uint32_t dest_id;
12578 int32_t xoffset;
12579 int32_t yoffset;
12580 int32_t x;
12581 int32_t y;
12582 int32_t width;
12583 int32_t height;
12584 };
12585
12586 static_assert(sizeof(CompressedCopySubTextureCHROMIUM) == 40,
12587 "size of CompressedCopySubTextureCHROMIUM should be 40");
12588 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, header) == 0,
12589 "offset of CompressedCopySubTextureCHROMIUM header should be 0");
12590 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, target) == 4,
12591 "offset of CompressedCopySubTextureCHROMIUM target should be 4");
12592 static_assert(
12593 offsetof(CompressedCopySubTextureCHROMIUM, source_id) == 8,
12594 "offset of CompressedCopySubTextureCHROMIUM source_id should be 8");
12595 static_assert(
12596 offsetof(CompressedCopySubTextureCHROMIUM, dest_id) == 12,
12597 "offset of CompressedCopySubTextureCHROMIUM dest_id should be 12");
12598 static_assert(
12599 offsetof(CompressedCopySubTextureCHROMIUM, xoffset) == 16,
12600 "offset of CompressedCopySubTextureCHROMIUM xoffset should be 16");
12601 static_assert(
12602 offsetof(CompressedCopySubTextureCHROMIUM, yoffset) == 20,
12603 "offset of CompressedCopySubTextureCHROMIUM yoffset should be 20");
12604 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, x) == 24,
12605 "offset of CompressedCopySubTextureCHROMIUM x should be 24");
12606 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, y) == 28,
12607 "offset of CompressedCopySubTextureCHROMIUM y should be 28");
12608 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, width) == 32,
12609 "offset of CompressedCopySubTextureCHROMIUM width should be 32");
12610 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, height) == 36,
12611 "offset of CompressedCopySubTextureCHROMIUM height should be 36");
12612
12526 struct DrawArraysInstancedANGLE { 12613 struct DrawArraysInstancedANGLE {
12527 typedef DrawArraysInstancedANGLE ValueType; 12614 typedef DrawArraysInstancedANGLE ValueType;
12528 static const CommandId kCmdId = kDrawArraysInstancedANGLE; 12615 static const CommandId kCmdId = kDrawArraysInstancedANGLE;
12529 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 12616 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
12530 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); 12617 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2);
12531 12618
12532 static uint32_t ComputeSize() { 12619 static uint32_t ComputeSize() {
12533 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 12620 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
12534 } 12621 }
12535 12622
(...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after
14569 14656
14570 gpu::CommandHeader header; 14657 gpu::CommandHeader header;
14571 }; 14658 };
14572 14659
14573 static_assert(sizeof(BlendBarrierKHR) == 4, 14660 static_assert(sizeof(BlendBarrierKHR) == 4,
14574 "size of BlendBarrierKHR should be 4"); 14661 "size of BlendBarrierKHR should be 4");
14575 static_assert(offsetof(BlendBarrierKHR, header) == 0, 14662 static_assert(offsetof(BlendBarrierKHR, header) == 0,
14576 "offset of BlendBarrierKHR header should be 0"); 14663 "offset of BlendBarrierKHR header should be 0");
14577 14664
14578 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 14665 #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