HLSL: Fix #1154: Support PointSize, as an attribute.

This commit is contained in:
John Kessenich 2017-12-06 07:33:36 -07:00
parent b0159f8565
commit cc951f8183
9 changed files with 255 additions and 5 deletions

View file

@ -66,7 +66,8 @@ namespace glslang {
EatBinding,
EatGlobalBinding,
EatLocation,
EatInputAttachment
EatInputAttachment,
EatBuiltIn
};
}
@ -84,6 +85,8 @@ namespace glslang {
class TAttributeMap {
public:
int size() const { return (int)attributes.size(); }
// Search for and potentially add the attribute into the map. Return the
// attribute type enum for it, if found, else EatNone.
TAttributeType setAttribute(const TString& nameSpace, const TString* name, TIntermAggregate* value);