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

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

Issue 1119723003: Add glCopyCompressedTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments in tests Created 5 years, 6 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 11889 matching lines...) Expand 10 before | Expand all | Expand 10 after
11900 "offset of CopySubTextureCHROMIUM target should be 4"); 11900 "offset of CopySubTextureCHROMIUM target should be 4");
11901 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8, 11901 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8,
11902 "offset of CopySubTextureCHROMIUM source_id should be 8"); 11902 "offset of CopySubTextureCHROMIUM source_id should be 8");
11903 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12, 11903 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12,
11904 "offset of CopySubTextureCHROMIUM dest_id should be 12"); 11904 "offset of CopySubTextureCHROMIUM dest_id should be 12");
11905 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 16, 11905 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 16,
11906 "offset of CopySubTextureCHROMIUM xoffset should be 16"); 11906 "offset of CopySubTextureCHROMIUM xoffset should be 16");
11907 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 20, 11907 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 20,
11908 "offset of CopySubTextureCHROMIUM yoffset should be 20"); 11908 "offset of CopySubTextureCHROMIUM yoffset should be 20");
11909 11909
11910 struct CopyCompressedTextureCHROMIUM {
11911 typedef CopyCompressedTextureCHROMIUM ValueType;
11912 static const CommandId kCmdId = kCopyCompressedTextureCHROMIUM;
11913 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
11914 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
11915
11916 static uint32_t ComputeSize() {
11917 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
11918 }
11919
11920 void SetHeader() { header.SetCmd<ValueType>(); }
11921
11922 void Init(GLenum _target,
11923 GLenum _source_id,
11924 GLenum _dest_id,
11925 GLenum _internalformat,
11926 GLenum _dest_type,
11927 GLsizei _source_size) {
11928 SetHeader();
11929 target = _target;
11930 source_id = _source_id;
11931 dest_id = _dest_id;
11932 internalformat = _internalformat;
11933 dest_type = _dest_type;
11934 source_size = _source_size;
11935 }
11936
11937 void* Set(void* cmd,
11938 GLenum _target,
11939 GLenum _source_id,
11940 GLenum _dest_id,
11941 GLenum _internalformat,
11942 GLenum _dest_type,
11943 GLsizei _source_size) {
11944 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id,
11945 _internalformat, _dest_type,
11946 _source_size);
11947 return NextCmdAddress<ValueType>(cmd);
11948 }
11949
11950 gpu::CommandHeader header;
11951 uint32_t target;
11952 uint32_t source_id;
11953 uint32_t dest_id;
11954 uint32_t internalformat;
11955 uint32_t dest_type;
11956 int32_t source_size;
11957 };
11958
11959 static_assert(sizeof(CopyCompressedTextureCHROMIUM) == 28,
11960 "size of CopyCompressedTextureCHROMIUM should be 28");
11961 static_assert(offsetof(CopyCompressedTextureCHROMIUM, header) == 0,
11962 "offset of CopyCompressedTextureCHROMIUM header should be 0");
11963 static_assert(offsetof(CopyCompressedTextureCHROMIUM, target) == 4,
11964 "offset of CopyCompressedTextureCHROMIUM target should be 4");
11965 static_assert(offsetof(CopyCompressedTextureCHROMIUM, source_id) == 8,
11966 "offset of CopyCompressedTextureCHROMIUM source_id should be 8");
11967 static_assert(offsetof(CopyCompressedTextureCHROMIUM, dest_id) == 12,
11968 "offset of CopyCompressedTextureCHROMIUM dest_id should be 12");
11969 static_assert(
11970 offsetof(CopyCompressedTextureCHROMIUM, internalformat) == 16,
11971 "offset of CopyCompressedTextureCHROMIUM internalformat should be 16");
11972 static_assert(offsetof(CopyCompressedTextureCHROMIUM, dest_type) == 20,
11973 "offset of CopyCompressedTextureCHROMIUM dest_type should be 20");
11974 static_assert(
11975 offsetof(CopyCompressedTextureCHROMIUM, source_size) == 24,
11976 "offset of CopyCompressedTextureCHROMIUM source_size should be 24");
11977
11910 struct DrawArraysInstancedANGLE { 11978 struct DrawArraysInstancedANGLE {
11911 typedef DrawArraysInstancedANGLE ValueType; 11979 typedef DrawArraysInstancedANGLE ValueType;
11912 static const CommandId kCmdId = kDrawArraysInstancedANGLE; 11980 static const CommandId kCmdId = kDrawArraysInstancedANGLE;
11913 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 11981 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
11914 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 11982 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
11915 11983
11916 static uint32_t ComputeSize() { 11984 static uint32_t ComputeSize() {
11917 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 11985 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
11918 } 11986 }
11919 11987
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
13342 13410
13343 gpu::CommandHeader header; 13411 gpu::CommandHeader header;
13344 }; 13412 };
13345 13413
13346 static_assert(sizeof(BlendBarrierKHR) == 4, 13414 static_assert(sizeof(BlendBarrierKHR) == 4,
13347 "size of BlendBarrierKHR should be 4"); 13415 "size of BlendBarrierKHR should be 4");
13348 static_assert(offsetof(BlendBarrierKHR, header) == 0, 13416 static_assert(offsetof(BlendBarrierKHR, header) == 0,
13349 "offset of BlendBarrierKHR header should be 0"); 13417 "offset of BlendBarrierKHR header should be 0");
13350 13418
13351 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 13419 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698