Add BUILD.gn configuration.

This CL adds the necessary configuration to build glslang inside a
Chromium checkout. Two build warnings were fixed in the process to
make things compile.
This commit is contained in:
Dan Sinclair
2018-09-24 16:35:44 -04:00
parent a8453d4bc0
commit 257b25c81f
5 changed files with 198 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ public:
bool isImageType(Id typeId) const { return getTypeClass(typeId) == OpTypeImage; }
bool isSamplerType(Id typeId) const { return getTypeClass(typeId) == OpTypeSampler; }
bool isSampledImageType(Id typeId) const { return getTypeClass(typeId) == OpTypeSampledImage; }
bool containsType(Id typeId, Op typeOp, int width) const;
bool containsType(Id typeId, Op typeOp, uint32_t width) const;
bool isConstantOpCode(Op opcode) const;
bool isSpecConstantOpCode(Op opcode) const;