Commit 5c72a739 by John Kessenich Committed by GitHub

Merge pull request #436 from dankbaker/master

HLSL: disabling dx9 attempt to parse dx9 style samplers
parents bbd1b0ef 349ac3df
...@@ -274,8 +274,14 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node) ...@@ -274,8 +274,14 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& node)
TType type; TType type;
// DX9 sampler declaration use a different syntax // DX9 sampler declaration use a different syntax
if (acceptSamplerDeclarationDX9(type)) // DX9 shaders need to run through HLSL compiler (fxc) via a back compat mode, it isn't going to
return true; // be possible to simultanously compile D3D10+ style shaders and DX9 shaders. If we want to compile DX9
// HLSL shaders, this will have to be a master level switch
// As such, the sampler keyword in D3D10+ turns into an automatic sampler type, and is commonly used
// For that reason, this line is commented out
// if (acceptSamplerDeclarationDX9(type))
// return true;
// fully_specified_type // fully_specified_type
if (! acceptFullySpecifiedType(type)) if (! acceptFullySpecifiedType(type))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment