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

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: added enum, removed count parameter. 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 UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate {
10003 typedef UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate ValueType;
10004 static const CommandId kCmdId =
10005 kUniformMatrix4fvWithCustomMatrixCHROMIUMImmediate;
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 GLenum _custom_matrix,
10021 GLboolean _transpose,
10022 const GLfloat* _default_value) {
10023 SetHeader();
10024 location = _location;
10025 custom_matrix = _custom_matrix;
10026 transpose = _transpose;
10027 memcpy(ImmediateDataAddress(this), _default_value, ComputeDataSize());
10028 }
10029
10030 void* Set(void* cmd,
10031 GLint _location,
10032 GLenum _custom_matrix,
10033 GLboolean _transpose,
10034 const GLfloat* _default_value) {
10035 static_cast<ValueType*>(cmd)->Init(_location, _custom_matrix, _transpose,
10036 _default_value);
10037 const uint32_t size = ComputeSize();
10038 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size);
10039 }
10040
10041 gpu::CommandHeader header;
10042 int32_t location;
10043 uint32_t custom_matrix;
10044 uint32_t transpose;
10045 };
10046
10047 static_assert(
10048 sizeof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate) == 16,
10049 "size of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate should be 16");
10050 static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
10051 header) == 0,
10052 "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
10053 "header should be 0");
10054 static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
10055 location) == 4,
10056 "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
10057 "location should be 4");
10058 static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
10059 custom_matrix) == 8,
10060 "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
10061 "custom_matrix should be 8");
10062 static_assert(offsetof(UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate,
10063 transpose) == 12,
10064 "offset of UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate "
10065 "transpose should be 12");
10066
10002 struct UseProgram { 10067 struct UseProgram {
10003 typedef UseProgram ValueType; 10068 typedef UseProgram ValueType;
10004 static const CommandId kCmdId = kUseProgram; 10069 static const CommandId kCmdId = kUseProgram;
10005 static const cmd::ArgFlags kArgFlags = cmd::kFixed; 10070 static const cmd::ArgFlags kArgFlags = cmd::kFixed;
10006 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); 10071 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3);
10007 10072
10008 static uint32_t ComputeSize() { 10073 static uint32_t ComputeSize() {
10009 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT 10074 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT
10010 } 10075 }
10011 10076
(...skipping 5686 matching lines...) Expand 10 before | Expand all | Expand 10 after
15698 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, 15763 static_assert(offsetof(GetFragDataIndexEXT, program) == 4,
15699 "offset of GetFragDataIndexEXT program should be 4"); 15764 "offset of GetFragDataIndexEXT program should be 4");
15700 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, 15765 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8,
15701 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); 15766 "offset of GetFragDataIndexEXT name_bucket_id should be 8");
15702 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, 15767 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12,
15703 "offset of GetFragDataIndexEXT index_shm_id should be 12"); 15768 "offset of GetFragDataIndexEXT index_shm_id should be 12");
15704 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, 15769 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16,
15705 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); 15770 "offset of GetFragDataIndexEXT index_shm_offset should be 16");
15706 15771
15707 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ 15772 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698