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

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

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase, add bogus spec text 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 15361 matching lines...) Expand 10 before | Expand all | Expand 10 after
15372 offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16, 15372 offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16,
15373 "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16"); 15373 "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16");
15374 static_assert( 15374 static_assert(
15375 offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20, 15375 offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20,
15376 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); 15376 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20");
15377 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, 15377 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM,
15378 coeffs_shm_offset) == 24, 15378 coeffs_shm_offset) == 24,
15379 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " 15379 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset "
15380 "should be 24"); 15380 "should be 24");
15381 15381
15382 struct CoverageModulationCHROMIUM {
15383 typedef CoverageModulationCHROMIUM ValueType;
15384 static const CommandId kCmdId = kCoverageModulationCHROMIUM;
15385 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15386 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15387
15388 static uint32_t ComputeSize() {
15389 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15390 }
15391
15392 void SetHeader() { header.SetCmd<ValueType>(); }
15393
15394 void Init(GLenum _components) {
15395 SetHeader();
15396 components = _components;
15397 }
15398
15399 void* Set(void* cmd, GLenum _components) {
15400 static_cast<ValueType*>(cmd)->Init(_components);
15401 return NextCmdAddress<ValueType>(cmd);
15402 }
15403
15404 gpu::CommandHeader header;
15405 uint32_t components;
15406 };
15407
15408 static_assert(sizeof(CoverageModulationCHROMIUM) == 8,
15409 "size of CoverageModulationCHROMIUM should be 8");
15410 static_assert(offsetof(CoverageModulationCHROMIUM, header) == 0,
15411 "offset of CoverageModulationCHROMIUM header should be 0");
15412 static_assert(offsetof(CoverageModulationCHROMIUM, components) == 4,
15413 "offset of CoverageModulationCHROMIUM components should be 4");
15414
15382 struct BlendBarrierKHR { 15415 struct BlendBarrierKHR {
15383 typedef BlendBarrierKHR ValueType; 15416 typedef BlendBarrierKHR ValueType;
15384 static const CommandId kCmdId = kBlendBarrierKHR; 15417 static const CommandId kCmdId = kBlendBarrierKHR;
15385 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 15418 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
15386 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 15419 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
15387 15420
15388 static uint32_t ComputeSize() { 15421 static uint32_t ComputeSize() {
15389 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 15422 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
15390 } 15423 }
15391 15424
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
15588 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, 15621 static_assert(offsetof(GetFragDataIndexEXT, program) == 4,
15589 "offset of GetFragDataIndexEXT program should be 4"); 15622 "offset of GetFragDataIndexEXT program should be 4");
15590 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, 15623 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8,
15591 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); 15624 "offset of GetFragDataIndexEXT name_bucket_id should be 8");
15592 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, 15625 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12,
15593 "offset of GetFragDataIndexEXT index_shm_id should be 12"); 15626 "offset of GetFragDataIndexEXT index_shm_id should be 12");
15594 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, 15627 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16,
15595 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); 15628 "offset of GetFragDataIndexEXT index_shm_offset should be 16");
15596 15629
15597 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15630 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698