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

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

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed enum, added GLStreamTextureImage : GLImage. Created 4 years, 10 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 9981 matching lines...) Expand 10 before | Expand all | Expand 10 after
9992 "size of UniformMatrix4x3fvImmediate should be 16"); 9992 "size of UniformMatrix4x3fvImmediate should be 16");
9993 static_assert(offsetof(UniformMatrix4x3fvImmediate, header) == 0, 9993 static_assert(offsetof(UniformMatrix4x3fvImmediate, header) == 0,
9994 "offset of UniformMatrix4x3fvImmediate header should be 0"); 9994 "offset of UniformMatrix4x3fvImmediate header should be 0");
9995 static_assert(offsetof(UniformMatrix4x3fvImmediate, location) == 4, 9995 static_assert(offsetof(UniformMatrix4x3fvImmediate, location) == 4,
9996 "offset of UniformMatrix4x3fvImmediate location should be 4"); 9996 "offset of UniformMatrix4x3fvImmediate location should be 4");
9997 static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8, 9997 static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8,
9998 "offset of UniformMatrix4x3fvImmediate count should be 8"); 9998 "offset of UniformMatrix4x3fvImmediate count should be 8");
9999 static_assert(offsetof(UniformMatrix4x3fvImmediate, transpose) == 12, 9999 static_assert(offsetof(UniformMatrix4x3fvImmediate, transpose) == 12,
10000 "offset of UniformMatrix4x3fvImmediate transpose should be 12"); 10000 "offset of UniformMatrix4x3fvImmediate transpose should be 12");
10001 10001
10002 struct UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate {
10003 typedef UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate ValueType;
10004 static const CommandId kCmdId =
10005 kUniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate;
10006 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
10007 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
10008
10009 static uint32_t ComputeDataSize() {
10010 return static_cast<uint32_t>(sizeof(GLfloat) * 16);
10011 }
10012
10013 static uint32_t ComputeSize() {
10014 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize());
10015 }
10016
10017 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); }
10018
10019 void Init(GLint _location,
10020 GLboolean _transpose,
10021 const GLfloat* _default_value) {
10022 SetHeader();
10023 location = _location;
10024 transpose = _transpose;
10025 memcpy(ImmediateDataAddress(this), _default_value, ComputeDataSize());
10026 }
10027
10028 void* Set(void* cmd,
10029 GLint _location,
10030 GLboolean _transpose,
10031 const GLfloat* _default_value) {
10032 static_cast<ValueType*>(cmd)->Init(_location, _transpose, _default_value);
10033 const uint32_t size = ComputeSize();
10034 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
10035 }
10036
10037 gpu::CommandHeader header;
10038 int32_t location;
10039 uint32_t transpose;
10040 };
10041
10042 static_assert(
10043 sizeof(UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate) == 12,
10044 "size of UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate should "
10045 "be 12");
10046 static_assert(offsetof(UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate,
10047 header) == 0,
10048 "offset of "
10049 "UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate header "
10050 "should be 0");
10051 static_assert(offsetof(UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate,
10052 location) == 4,
10053 "offset of "
10054 "UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate "
10055 "location should be 4");
10056 static_assert(offsetof(UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate,
10057 transpose) == 8,
10058 "offset of "
10059 "UniformMatrix4fvWithStreamTextureMatrixCHROMIUMImmediate "
10060 "transpose should be 8");
10061
10002 struct UseProgram { 10062 struct UseProgram {
10003 typedef UseProgram ValueType; 10063 typedef UseProgram ValueType;
10004 static const CommandId kCmdId = kUseProgram; 10064 static const CommandId kCmdId = kUseProgram;
10005 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 10065 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
10006 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 10066 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
10007 10067
10008 static uint32_t ComputeSize() { 10068 static uint32_t ComputeSize() {
10009 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 10069 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
10010 } 10070 }
10011 10071
(...skipping 5686 matching lines...) Expand 10 before | Expand all | Expand 10 after
15698 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, 15758 static_assert(offsetof(GetFragDataIndexEXT, program) == 4,
15699 "offset of GetFragDataIndexEXT program should be 4"); 15759 "offset of GetFragDataIndexEXT program should be 4");
15700 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, 15760 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8,
15701 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); 15761 "offset of GetFragDataIndexEXT name_bucket_id should be 8");
15702 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, 15762 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12,
15703 "offset of GetFragDataIndexEXT index_shm_id should be 12"); 15763 "offset of GetFragDataIndexEXT index_shm_id should be 12");
15704 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, 15764 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16,
15705 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); 15765 "offset of GetFragDataIndexEXT index_shm_offset should be 16");
15706 15766
15707 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15767 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698