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
ca279340
Unverified
Commit
ca279340
authored
Mar 08, 2018
by
John Kessenich
Committed by
GitHub
Mar 08, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1284 from amdrexu/bugfix
Allow --hlsl-enable-16bit-types to be used without AMD_EXTENSIONS
parents
a5152505
7798aaf1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
hlslGrammar.cpp
hlsl/hlslGrammar.cpp
+1
-11
No files found.
hlsl/hlslGrammar.cpp
View file @
ca279340
...
@@ -1377,9 +1377,7 @@ bool HlslGrammar::acceptType(TType& type)
...
@@ -1377,9 +1377,7 @@ bool HlslGrammar::acceptType(TType& type)
}
}
bool
HlslGrammar
::
acceptType
(
TType
&
type
,
TIntermNode
*&
nodeList
)
bool
HlslGrammar
::
acceptType
(
TType
&
type
,
TIntermNode
*&
nodeList
)
{
{
// Basic types for min* types, broken out here in case of future
// Basic types for min* types, use native halfs if the option allows them.
// changes, e.g, to use native halfs.
#ifdef AMD_EXTENSIONS
bool
enable16BitTypes
=
parseContext
.
hlslEnable16BitTypes
();
bool
enable16BitTypes
=
parseContext
.
hlslEnable16BitTypes
();
const
TBasicType
min16float_bt
=
enable16BitTypes
?
EbtFloat16
:
EbtFloat
;
const
TBasicType
min16float_bt
=
enable16BitTypes
?
EbtFloat16
:
EbtFloat
;
...
@@ -1388,14 +1386,6 @@ bool HlslGrammar::acceptType(TType& type, TIntermNode*& nodeList)
...
@@ -1388,14 +1386,6 @@ bool HlslGrammar::acceptType(TType& type, TIntermNode*& nodeList)
const
TBasicType
min16int_bt
=
enable16BitTypes
?
EbtInt16
:
EbtInt
;
const
TBasicType
min16int_bt
=
enable16BitTypes
?
EbtInt16
:
EbtInt
;
const
TBasicType
min12int_bt
=
enable16BitTypes
?
EbtInt16
:
EbtInt
;
const
TBasicType
min12int_bt
=
enable16BitTypes
?
EbtInt16
:
EbtInt
;
const
TBasicType
min16uint_bt
=
enable16BitTypes
?
EbtUint16
:
EbtUint
;
const
TBasicType
min16uint_bt
=
enable16BitTypes
?
EbtUint16
:
EbtUint
;
#else
static
const
TBasicType
min16float_bt
=
EbtFloat
;
static
const
TBasicType
min10float_bt
=
EbtFloat
;
static
const
TBasicType
half_bt
=
EbtFloat
;
static
const
TBasicType
min16int_bt
=
EbtInt
;
static
const
TBasicType
min12int_bt
=
EbtInt
;
static
const
TBasicType
min16uint_bt
=
EbtUint
;
#endif
// Some types might have turned into identifiers. Take the hit for checking
// Some types might have turned into identifiers. Take the hit for checking
// when this has happened.
// when this has happened.
...
...
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