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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format_test_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 // This file contains unit tests for gles2 commmands 9 // This file contains unit tests for gles2 commmands
10 // It is included by gles2_cmd_format_test.cc 10 // It is included by gles2_cmd_format_test.cc
(...skipping 3308 matching lines...) Expand 10 before | Expand all | Expand 10 after
3319 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); 3319 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3320 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); 3320 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
3321 EXPECT_EQ(static_cast<GLsizei>(12), cmd.samples); 3321 EXPECT_EQ(static_cast<GLsizei>(12), cmd.samples);
3322 EXPECT_EQ(static_cast<GLenum>(13), cmd.internalformat); 3322 EXPECT_EQ(static_cast<GLenum>(13), cmd.internalformat);
3323 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width); 3323 EXPECT_EQ(static_cast<GLsizei>(14), cmd.width);
3324 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); 3324 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height);
3325 CheckBytesWrittenMatchesExpectedSize( 3325 CheckBytesWrittenMatchesExpectedSize(
3326 next_cmd, sizeof(cmd)); 3326 next_cmd, sizeof(cmd));
3327 } 3327 }
3328 3328
3329 TEST_F(GLES2FormatTest, FramebufferTexture2DMultisampleEXT) {
3330 cmds::FramebufferTexture2DMultisampleEXT& cmd =
3331 *GetBufferAs<cmds::FramebufferTexture2DMultisampleEXT>();
3332 void* next_cmd = cmd.Set(
3333 &cmd,
3334 static_cast<GLenum>(11),
3335 static_cast<GLenum>(12),
3336 static_cast<GLenum>(13),
3337 static_cast<GLuint>(14),
3338 static_cast<GLint>(15),
3339 static_cast<GLsizei>(16));
3340 EXPECT_EQ(
3341 static_cast<uint32>(cmds::FramebufferTexture2DMultisampleEXT::kCmdId),
3342 cmd.header.command);
3343 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
3344 EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
3345 EXPECT_EQ(static_cast<GLenum>(12), cmd.attachment);
3346 EXPECT_EQ(static_cast<GLenum>(13), cmd.textarget);
3347 EXPECT_EQ(static_cast<GLuint>(14), cmd.texture);
3348 EXPECT_EQ(static_cast<GLint>(15), cmd.level);
3349 EXPECT_EQ(static_cast<GLsizei>(16), cmd.samples);
3350 CheckBytesWrittenMatchesExpectedSize(
3351 next_cmd, sizeof(cmd));
3352 }
3353
3329 TEST_F(GLES2FormatTest, TexStorage2DEXT) { 3354 TEST_F(GLES2FormatTest, TexStorage2DEXT) {
3330 cmds::TexStorage2DEXT& cmd = *GetBufferAs<cmds::TexStorage2DEXT>(); 3355 cmds::TexStorage2DEXT& cmd = *GetBufferAs<cmds::TexStorage2DEXT>();
3331 void* next_cmd = cmd.Set( 3356 void* next_cmd = cmd.Set(
3332 &cmd, 3357 &cmd,
3333 static_cast<GLenum>(11), 3358 static_cast<GLenum>(11),
3334 static_cast<GLsizei>(12), 3359 static_cast<GLsizei>(12),
3335 static_cast<GLenum>(13), 3360 static_cast<GLenum>(13),
3336 static_cast<GLsizei>(14), 3361 static_cast<GLsizei>(14),
3337 static_cast<GLsizei>(15)); 3362 static_cast<GLsizei>(15));
3338 EXPECT_EQ(static_cast<uint32>(cmds::TexStorage2DEXT::kCmdId), 3363 EXPECT_EQ(static_cast<uint32>(cmds::TexStorage2DEXT::kCmdId),
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
4499 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u); 4524 EXPECT_EQ(kExpectedCmdSize, cmd.header.size * 4u);
4500 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count); 4525 EXPECT_EQ(static_cast<GLsizei>(1), cmd.count);
4501 CheckBytesWrittenMatchesExpectedSize( 4526 CheckBytesWrittenMatchesExpectedSize(
4502 next_cmd, sizeof(cmd) + 4527 next_cmd, sizeof(cmd) +
4503 RoundSizeToMultipleOfEntries(sizeof(data))); 4528 RoundSizeToMultipleOfEntries(sizeof(data)));
4504 // TODO(gman): Check that data was inserted; 4529 // TODO(gman): Check that data was inserted;
4505 } 4530 }
4506 4531
4507 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ 4532 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
4508 4533
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_ids_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698