Merge pull request #406 from steve-lunarg/pp_line

HLSL: enable #line extension by default for HLSL source.
This commit is contained in:
John Kessenich 2016-07-26 09:39:48 -06:00 committed by GitHub
commit 64723c20b5
6 changed files with 160 additions and 2 deletions

View file

@ -88,6 +88,14 @@ HlslParseContext::~HlslParseContext()
{
}
void HlslParseContext::initializeExtensionBehavior()
{
TParseContextBase::initializeExtensionBehavior();
// HLSL allows #line by default.
extensionBehavior[E_GL_GOOGLE_cpp_style_line_directive] = EBhEnable;
}
void HlslParseContext::setLimits(const TBuiltInResource& r)
{
resources = r;