HLSL: Add string basic type and recognize string declaration grammar.
This includes the "< decl ; decl ; >" syntax which has its own namespace. This functionality is not implemented, just silently accepted.
This commit is contained in:
parent
eee9d536bc
commit
86f7138706
10 changed files with 146 additions and 1 deletions
|
|
@ -4052,6 +4052,11 @@ void HlslParseContext::declareTypedef(const TSourceLoc& loc, TString& identifier
|
|||
//
|
||||
TIntermNode* HlslParseContext::declareVariable(const TSourceLoc& loc, TString& identifier, const TType& parseType, TArraySizes* arraySizes, TIntermTyped* initializer)
|
||||
{
|
||||
// string identifiers can nest inside < ... >, apparently with their own namespace,
|
||||
// which is not implemented
|
||||
if (parseType.getBasicType() == EbtString)
|
||||
return nullptr;
|
||||
|
||||
TType type;
|
||||
type.shallowCopy(parseType);
|
||||
if (type.isImplicitlySizedArray()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue