Warning for #pragma once. GLSL and HLSL. Addresses #824.
This commit is contained in:
parent
b5bf536b5f
commit
23ea3db3e5
5 changed files with 15 additions and 0 deletions
|
|
@ -550,6 +550,13 @@ void HlslParseContext::handlePragma(const TSourceLoc& loc, const TVector<TString
|
|||
warn(loc, "unknown pack_matrix pragma value", tokens[2].c_str(), "");
|
||||
globalUniformDefaults.layoutMatrix = globalBufferDefaults.layoutMatrix = ElmRowMajor;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle once
|
||||
if (lowerTokens[0] == "once") {
|
||||
warn(loc, "not implemented", "#pragma once", "");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue