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
b2b3d81e
Unverified
Commit
b2b3d81e
authored
Oct 29, 2018
by
John Kessenich
Committed by
GitHub
Oct 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1556 from Kangz/msvc
Fix MSVC warning C4065: 'default' but no 'case' labels
parents
f0928b3f
04a2fe93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SpvPostProcess.cpp
SPIRV/SpvPostProcess.cpp
+2
-2
No files found.
SPIRV/SpvPostProcess.cpp
View file @
b2b3d81e
...
@@ -121,8 +121,8 @@ void Builder::postProcessType(const Instruction& inst, Id typeId)
...
@@ -121,8 +121,8 @@ void Builder::postProcessType(const Instruction& inst, Id typeId)
case
OpUConvert
:
case
OpUConvert
:
break
;
break
;
case
OpExtInst
:
case
OpExtInst
:
switch
(
inst
.
getImmediateOperand
(
1
))
{
#if AMD_EXTENSIONS
#if AMD_EXTENSIONS
switch
(
inst
.
getImmediateOperand
(
1
))
{
case
GLSLstd450Frexp
:
case
GLSLstd450Frexp
:
case
GLSLstd450FrexpStruct
:
case
GLSLstd450FrexpStruct
:
if
(
getSpvVersion
()
<
glslang
::
EShTargetSpv_1_3
&&
containsType
(
typeId
,
OpTypeInt
,
16
))
if
(
getSpvVersion
()
<
glslang
::
EShTargetSpv_1_3
&&
containsType
(
typeId
,
OpTypeInt
,
16
))
...
@@ -134,10 +134,10 @@ void Builder::postProcessType(const Instruction& inst, Id typeId)
...
@@ -134,10 +134,10 @@ void Builder::postProcessType(const Instruction& inst, Id typeId)
if
(
getSpvVersion
()
<
glslang
::
EShTargetSpv_1_3
&&
containsType
(
typeId
,
OpTypeFloat
,
16
))
if
(
getSpvVersion
()
<
glslang
::
EShTargetSpv_1_3
&&
containsType
(
typeId
,
OpTypeFloat
,
16
))
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_half_float
);
addExtension
(
spv
::
E_SPV_AMD_gpu_shader_half_float
);
break
;
break
;
#endif
default
:
default
:
break
;
break
;
}
}
#endif
break
;
break
;
default
:
default
:
if
(
basicTypeOp
==
OpTypeFloat
&&
width
==
16
)
if
(
basicTypeOp
==
OpTypeFloat
&&
width
==
16
)
...
...
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