HLSL: Fix #1974: ignore input primitives on non-entry-point functions.
This commit is contained in:
parent
3ed344dd78
commit
b0ada80356
6 changed files with 244 additions and 80 deletions
|
|
@ -183,6 +183,11 @@ public:
|
|||
void getFullNamespaceName(TString*&) const;
|
||||
void addScopeMangler(TString&);
|
||||
|
||||
void beginParameterParsing(TFunction& function)
|
||||
{
|
||||
parsingEntrypointParameters = isEntrypointName(function.getName());
|
||||
}
|
||||
|
||||
void pushSwitchSequence(TIntermSequence* sequence) { switchSequenceStack.push_back(sequence); }
|
||||
void popSwitchSequence() { switchSequenceStack.pop_back(); }
|
||||
|
||||
|
|
@ -241,6 +246,7 @@ protected:
|
|||
TIntermTyped* convertInitializerList(const TSourceLoc&, const TType&, TIntermTyped* initializer, TIntermTyped* scalarInit);
|
||||
bool isScalarConstructor(const TIntermNode*);
|
||||
TOperator mapAtomicOp(const TSourceLoc& loc, TOperator op, bool isImage);
|
||||
bool isEntrypointName(const TString& name) { return name.compare(intermediate.getEntryPointName().c_str()) == 0; }
|
||||
|
||||
// Return true if this node requires L-value conversion (e.g, to an imageStore).
|
||||
bool shouldConvertLValue(const TIntermNode*) const;
|
||||
|
|
@ -494,6 +500,7 @@ protected:
|
|||
};
|
||||
|
||||
TMap<int, tShadowTextureSymbols*> textureShadowVariant;
|
||||
bool parsingEntrypointParameters;
|
||||
};
|
||||
|
||||
// This is the prefix we use for built-in methods to avoid namespace collisions with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue