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
c04c6a40
Commit
c04c6a40
authored
Mar 11, 2017
by
John Kessenich
Committed by
GitHub
Mar 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #762 from LukasBanana/master
Added 'GL_core_profile' and 'GL_compatibility_profile' to macro expansion
parents
54ee28f4
1fbc6e6c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
150.vert
Test/150.vert
+4
-0
150.vert.out
Test/baseResults/150.vert.out
+0
-0
Versions.cpp
glslang/MachineIndependent/Versions.cpp
+13
-0
No files found.
Test/150.vert
View file @
c04c6a40
#version 150 core
#version 150 core
#ifndef GL_core_profile
# error standard macro GL_core_profile not defined
#endif
in
vec4
iv4
;
in
vec4
iv4
;
uniform
float
ps
;
uniform
float
ps
;
...
...
Test/baseResults/150.vert.out
View file @
c04c6a40
This diff is collapsed.
Click to expand it.
glslang/MachineIndependent/Versions.cpp
View file @
c04c6a40
...
@@ -332,6 +332,19 @@ void TParseVersions::getPreamble(std::string& preamble)
...
@@ -332,6 +332,19 @@ void TParseVersions::getPreamble(std::string& preamble)
"#define GL_GOOGLE_include_directive 1
\n
"
"#define GL_GOOGLE_include_directive 1
\n
"
;
;
if
(
version
>=
150
)
{
// define GL_core_profile and GL_compatibility_profile
preamble
+=
"#define GL_core_profile 1
\n
"
;
if
(
profile
==
ECompatibilityProfile
)
{
preamble
+=
"#define GL_compatibility_profile 1
\n
"
;
}
}
// #define VULKAN XXXX
// #define VULKAN XXXX
const
int
numberBufSize
=
12
;
const
int
numberBufSize
=
12
;
char
numberBuf
[
numberBufSize
];
char
numberBuf
[
numberBufSize
];
...
...
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