Commit 1ab6d214 by Gert Wollny Committed by Angle LUCI CQ

Capture: Create group variable for BlockMemberInfo

Also declare GroupScope as NO_DISCARD. Bug: angleproject:6016 Change-Id: I738f137727d52a0930cd8c400fbc05f1cc8cfdad Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2943927 Commit-Queue: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent ee4a5266
...@@ -238,7 +238,7 @@ static const char *CompileStatusToString(gl::CompileStatus status) ...@@ -238,7 +238,7 @@ static const char *CompileStatusToString(gl::CompileStatus status)
#undef ENUM_TO_STRING #undef ENUM_TO_STRING
class GroupScope class ANGLE_NO_DISCARD GroupScope
{ {
public: public:
GroupScope(JsonSerializer *json_, const std::string &name) : json(json_) GroupScope(JsonSerializer *json_, const std::string &name) : json(json_)
...@@ -994,7 +994,7 @@ void SerializeVariableLocationsVector(JsonSerializer *json, ...@@ -994,7 +994,7 @@ void SerializeVariableLocationsVector(JsonSerializer *json,
void SerializeBlockMemberInfo(JsonSerializer *json, const sh::BlockMemberInfo &blockMemberInfo) void SerializeBlockMemberInfo(JsonSerializer *json, const sh::BlockMemberInfo &blockMemberInfo)
{ {
GroupScope(json, "BlockMemberInfo"); GroupScope group(json, "BlockMemberInfo");
json->addScalar("Offset", blockMemberInfo.offset); json->addScalar("Offset", blockMemberInfo.offset);
json->addScalar("Stride", blockMemberInfo.arrayStride); json->addScalar("Stride", blockMemberInfo.arrayStride);
json->addScalar("MatrixStride", blockMemberInfo.matrixStride); json->addScalar("MatrixStride", blockMemberInfo.matrixStride);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment