Commit 383442e5 by Shahbaz Youssefi Committed by Commit Bot

Add a helper ShaderVariable method to facilitate member rename

Chromium uses ShaderVariable::structName directly, which makes it impossible to rename this variable. Bug: angleproject:3580 Change-Id: I328015b0e7f26d22d689451bac0d7a48999bef2e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2637419 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 2e0490ee
...@@ -100,6 +100,8 @@ struct ShaderVariable ...@@ -100,6 +100,8 @@ struct ShaderVariable
unsigned int getExternalSize() const; unsigned int getExternalSize() const;
bool isStruct() const { return !fields.empty(); } bool isStruct() const { return !fields.empty(); }
const std::string &getStructName() const { return structName; }
void setStructName(const std::string &newName) { structName = newName; }
// All of the shader's variables are described using nested data // All of the shader's variables are described using nested data
// structures. This is needed in order to disambiguate similar looking // structures. This is needed in order to disambiguate similar looking
......
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