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

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: Remove glGetCompressedTexImage fallback 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 CompressedCopyTextureCHROMIUM {
11911 typedef CompressedCopyTextureCHROMIUM ValueType;
11912 static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM;
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 GLsizei _source_size) {
11927 SetHeader();
11928 target = _target;
11929 source_id = _source_id;
11930 dest_id = _dest_id;
11931 internalformat = _internalformat;
11932 source_size = _source_size;
11933 }
11934
11935 void* Set(void* cmd,
11936 GLenum _target,
11937 GLenum _source_id,
11938 GLenum _dest_id,
11939 GLenum _internalformat,
11940 GLsizei _source_size) {
11941 static_cast<ValueType*>(cmd)
11942 ->Init(_target, _source_id, _dest_id, _internalformat, _source_size);
11943 return NextCmdAddress<ValueType>(cmd);
11944 }
11945
11946 gpu::CommandHeader header;
11947 uint32_t target;
11948 uint32_t source_id;
11949 uint32_t dest_id;
11950 uint32_t internalformat;
11951 int32_t source_size;
11952 };
11953
11954 static_assert(sizeof(CompressedCopyTextureCHROMIUM) == 24,
11955 "size of CompressedCopyTextureCHROMIUM should be 24");
11956 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0,
11957 "offset of CompressedCopyTextureCHROMIUM header should be 0");
11958 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4,
11959 "offset of CompressedCopyTextureCHROMIUM target should be 4");
11960 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8,
11961 "offset of CompressedCopyTextureCHROMIUM source_id should be 8");
11962 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12,
11963 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12");
11964 static_assert(
11965 offsetof(CompressedCopyTextureCHROMIUM, internalformat) == 16,
11966 "offset of CompressedCopyTextureCHROMIUM internalformat should be 16");
11967 static_assert(
11968 offsetof(CompressedCopyTextureCHROMIUM, source_size) == 20,
11969 "offset of CompressedCopyTextureCHROMIUM source_size should be 20");
11970
11910 struct DrawArraysInstancedANGLE { 11971 struct DrawArraysInstancedANGLE {
11911 typedef DrawArraysInstancedANGLE ValueType; 11972 typedef DrawArraysInstancedANGLE ValueType;
11912 static const CommandId kCmdId = kDrawArraysInstancedANGLE; 11973 static const CommandId kCmdId = kDrawArraysInstancedANGLE;
11913 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 11974 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
11914 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 11975 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
11915 11976
11916 static uint32_t ComputeSize() { 11977 static uint32_t ComputeSize() {
11917 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 11978 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
11918 } 11979 }
11919 11980
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
13342 13403
13343 gpu::CommandHeader header; 13404 gpu::CommandHeader header;
13344 }; 13405 };
13345 13406
13346 static_assert(sizeof(BlendBarrierKHR) == 4, 13407 static_assert(sizeof(BlendBarrierKHR) == 4,
13347 "size of BlendBarrierKHR should be 4"); 13408 "size of BlendBarrierKHR should be 4");
13348 static_assert(offsetof(BlendBarrierKHR, header) == 0, 13409 static_assert(offsetof(BlendBarrierKHR, header) == 0,
13349 "offset of BlendBarrierKHR header should be 0"); 13410 "offset of BlendBarrierKHR header should be 0");
13350 13411
13351 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 13412 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698