Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
5c72a739
Commit
5c72a739
authored
Aug 05, 2016
by
John Kessenich
Committed by
GitHub
Aug 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #436 from dankbaker/master
HLSL: disabling dx9 attempt to parse dx9 style samplers
parents
bbd1b0ef
349ac3df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
hlslGrammar.cpp
hlsl/hlslGrammar.cpp
+8
-2
No files found.
hlsl/hlslGrammar.cpp
View file @
5c72a739
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment