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
95c414ff
Unverified
Commit
95c414ff
authored
Feb 06, 2020
by
John Kessenich
Committed by
GitHub
Feb 06, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2079 from dneto0/warnings
Avoid enum-compare warning, missing cases in switch
parents
2d70e98d
4bb910cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
glslang_c_interface.cpp
glslang/CInterface/glslang_c_interface.cpp
+14
-12
No files found.
glslang/CInterface/glslang_c_interface.cpp
View file @
95c414ff
...
...
@@ -42,18 +42,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "glslang/Include/ResourceLimits.h"
#include "glslang/MachineIndependent/Versions.h"
static_assert
(
GLSLANG_STAGE_COUNT
==
EShLangCount
,
""
);
static_assert
(
GLSLANG_STAGE_MASK_COUNT
==
EShLanguageMaskCount
,
""
);
static_assert
(
GLSLANG_SOURCE_COUNT
==
glslang
::
EShSourceCount
,
""
);
static_assert
(
GLSLANG_CLIENT_COUNT
==
glslang
::
EShClientCount
,
""
);
static_assert
(
GLSLANG_TARGET_COUNT
==
glslang
::
EShTargetCount
,
""
);
static_assert
(
GLSLANG_TARGET_CLIENT_VERSION_COUNT
==
glslang
::
EShTargetClientVersionCount
,
""
);
static_assert
(
GLSLANG_TARGET_LANGUAGE_VERSION_COUNT
==
glslang
::
EShTargetLanguageVersionCount
,
""
);
static_assert
(
GLSLANG_OPT_LEVEL_COUNT
==
EshOptLevelCount
,
""
);
static_assert
(
GLSLANG_TEX_SAMP_TRANS_COUNT
==
EShTexSampTransCount
,
""
);
static_assert
(
GLSLANG_MSG_COUNT
==
EShMsgCount
,
""
);
static_assert
(
GLSLANG_REFLECTION_COUNT
==
EShReflectionCount
,
""
);
static_assert
(
GLSLANG_PROFILE_COUNT
==
EProfileCount
,
""
);
static_assert
(
int
(
GLSLANG_STAGE_COUNT
)
==
EShLangCount
,
""
);
static_assert
(
int
(
GLSLANG_STAGE_MASK_COUNT
)
==
EShLanguageMaskCount
,
""
);
static_assert
(
int
(
GLSLANG_SOURCE_COUNT
)
==
glslang
::
EShSourceCount
,
""
);
static_assert
(
int
(
GLSLANG_CLIENT_COUNT
)
==
glslang
::
EShClientCount
,
""
);
static_assert
(
int
(
GLSLANG_TARGET_COUNT
)
==
glslang
::
EShTargetCount
,
""
);
static_assert
(
int
(
GLSLANG_TARGET_CLIENT_VERSION_COUNT
)
==
glslang
::
EShTargetClientVersionCount
,
""
);
static_assert
(
int
(
GLSLANG_TARGET_LANGUAGE_VERSION_COUNT
)
==
glslang
::
EShTargetLanguageVersionCount
,
""
);
static_assert
(
int
(
GLSLANG_OPT_LEVEL_COUNT
)
==
EshOptLevelCount
,
""
);
static_assert
(
int
(
GLSLANG_TEX_SAMP_TRANS_COUNT
)
==
EShTexSampTransCount
,
""
);
static_assert
(
int
(
GLSLANG_MSG_COUNT
)
==
EShMsgCount
,
""
);
static_assert
(
int
(
GLSLANG_REFLECTION_COUNT
)
==
EShReflectionCount
,
""
);
static_assert
(
int
(
GLSLANG_PROFILE_COUNT
)
==
EProfileCount
,
""
);
typedef
struct
glslang_shader_s
{
glslang
::
TShader
*
shader
;
...
...
@@ -314,6 +314,8 @@ static EProfile c_shader_profile(glslang_profile_t profile)
return
ECompatibilityProfile
;
case
GLSLANG_ES_PROFILE
:
return
EEsProfile
;
case
GLSLANG_PROFILE_COUNT
:
// Should not use this
break
;
}
return
EProfile
();
...
...
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