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

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

Issue 18492005: Add GL_EXT_multisampled_render_to_texture support to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved ahead to TOT Created 7 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
(...skipping 8454 matching lines...) Expand 10 before | Expand all | Expand 10 after
8465 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, samples) == 8, 8465 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, samples) == 8,
8466 OffsetOf_RenderbufferStorageMultisampleEXT_samples_not_8); 8466 OffsetOf_RenderbufferStorageMultisampleEXT_samples_not_8);
8467 COMPILE_ASSERT( 8467 COMPILE_ASSERT(
8468 offsetof(RenderbufferStorageMultisampleEXT, internalformat) == 12, 8468 offsetof(RenderbufferStorageMultisampleEXT, internalformat) == 12,
8469 OffsetOf_RenderbufferStorageMultisampleEXT_internalformat_not_12) ; // NOLINT 8469 OffsetOf_RenderbufferStorageMultisampleEXT_internalformat_not_12) ; // NOLINT
8470 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, width) == 16, 8470 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, width) == 16,
8471 OffsetOf_RenderbufferStorageMultisampleEXT_width_not_16); 8471 OffsetOf_RenderbufferStorageMultisampleEXT_width_not_16);
8472 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, height) == 20, 8472 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, height) == 20,
8473 OffsetOf_RenderbufferStorageMultisampleEXT_height_not_20); 8473 OffsetOf_RenderbufferStorageMultisampleEXT_height_not_20);
8474 8474
8475 struct FramebufferTexture2DMultisampleEXT {
8476 typedef FramebufferTexture2DMultisampleEXT ValueType;
8477 static const CommandId kCmdId = kFramebufferTexture2DMultisampleEXT;
8478 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8479
8480 static uint32 ComputeSize() {
8481 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8482 }
8483
8484 void SetHeader() {
8485 header.SetCmd<ValueType>();
8486 }
8487
8488 void Init(
8489 GLenum _target, GLenum _attachment, GLenum _textarget, GLuint _texture,
8490 GLint _level, GLsizei _samples) {
8491 SetHeader();
8492 target = _target;
8493 attachment = _attachment;
8494 textarget = _textarget;
8495 texture = _texture;
8496 level = _level;
8497 samples = _samples;
8498 }
8499
8500 void* Set(
8501 void* cmd, GLenum _target, GLenum _attachment, GLenum _textarget,
8502 GLuint _texture, GLint _level, GLsizei _samples) {
8503 static_cast<ValueType*>(
8504 cmd)->Init(
8505 _target, _attachment, _textarget, _texture, _level, _samples);
8506 return NextCmdAddress<ValueType>(cmd);
8507 }
8508
8509 gpu::CommandHeader header;
8510 uint32 target;
8511 uint32 attachment;
8512 uint32 textarget;
8513 uint32 texture;
8514 int32 level;
8515 int32 samples;
8516 };
8517
8518 COMPILE_ASSERT(sizeof(FramebufferTexture2DMultisampleEXT) == 28,
8519 Sizeof_FramebufferTexture2DMultisampleEXT_is_not_28);
8520 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, header) == 0,
8521 OffsetOf_FramebufferTexture2DMultisampleEXT_header_not_0);
8522 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, target) == 4,
8523 OffsetOf_FramebufferTexture2DMultisampleEXT_target_not_4);
8524 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, attachment) == 8,
8525 OffsetOf_FramebufferTexture2DMultisampleEXT_attachment_not_8);
8526 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, textarget) == 12,
8527 OffsetOf_FramebufferTexture2DMultisampleEXT_textarget_not_12);
8528 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, texture) == 16,
8529 OffsetOf_FramebufferTexture2DMultisampleEXT_texture_not_16);
8530 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, level) == 20,
8531 OffsetOf_FramebufferTexture2DMultisampleEXT_level_not_20);
8532 COMPILE_ASSERT(offsetof(FramebufferTexture2DMultisampleEXT, samples) == 24,
8533 OffsetOf_FramebufferTexture2DMultisampleEXT_samples_not_24);
8534
8475 struct TexStorage2DEXT { 8535 struct TexStorage2DEXT {
8476 typedef TexStorage2DEXT ValueType; 8536 typedef TexStorage2DEXT ValueType;
8477 static const CommandId kCmdId = kTexStorage2DEXT; 8537 static const CommandId kCmdId = kTexStorage2DEXT;
8478 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 8538 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
8479 8539
8480 static uint32 ComputeSize() { 8540 static uint32 ComputeSize() {
8481 return static_cast<uint32>(sizeof(ValueType)); // NOLINT 8541 return static_cast<uint32>(sizeof(ValueType)); // NOLINT
8482 } 8542 }
8483 8543
8484 void SetHeader() { 8544 void SetHeader() {
(...skipping 2548 matching lines...) Expand 10 before | Expand all | Expand 10 after
11033 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, 11093 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8,
11034 Sizeof_DrawBuffersEXTImmediate_is_not_8); 11094 Sizeof_DrawBuffersEXTImmediate_is_not_8);
11035 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, 11095 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0,
11036 OffsetOf_DrawBuffersEXTImmediate_header_not_0); 11096 OffsetOf_DrawBuffersEXTImmediate_header_not_0);
11037 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, 11097 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4,
11038 OffsetOf_DrawBuffersEXTImmediate_count_not_4); 11098 OffsetOf_DrawBuffersEXTImmediate_count_not_4);
11039 11099
11040 11100
11041 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 11101 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
11042 11102
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