HLSL: Emit the OpSource HLSL instruction for HLSL, using new headers.

This commit is contained in:
John Kessenich
2017-04-07 15:33:08 -06:00
parent 7962bda334
commit 6fa17641b5
214 changed files with 611 additions and 433 deletions

View File

@@ -6424,7 +6424,7 @@ TIntermNode* HlslParseContext::executeInitializer(const TSourceLoc& loc, TInterm
return nullptr;
}
// Const variables require a constant initializer, depending on version
// Const variables require a constant initializer
if (qualifier == EvqConst) {
if (initializer->getType().getQualifier().storage != EvqConst) {
variable->getWritableType().getQualifier().storage = EvqConstReadOnly;