HLSL: enable #line extension by default for HLSL source.
This commit is contained in:
parent
b8d2a006d1
commit
6256146ef3
6 changed files with 160 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue