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
51b86c1a
Unverified
Commit
51b86c1a
authored
Feb 15, 2021
by
greg-lunarg
Committed by
GitHub
Feb 15, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2532 from juliusikkala/master
Pass environment through PreprocessDeferred
parents
b0f8a0c3
6274ec5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+5
-3
No files found.
glslang/MachineIndependent/ShaderLang.cpp
View file @
51b86c1a
...
...
@@ -1274,14 +1274,15 @@ bool PreprocessDeferred(
EShMessages
messages
,
// warnings/errors/AST; things to print out
TShader
::
Includer
&
includer
,
TIntermediate
&
intermediate
,
// returned tree, etc.
std
::
string
*
outputString
)
std
::
string
*
outputString
,
TEnvironment
*
environment
=
nullptr
)
{
DoPreprocessing
parser
(
outputString
);
return
ProcessDeferred
(
compiler
,
shaderStrings
,
numStrings
,
inputLengths
,
stringNames
,
preamble
,
optLevel
,
resources
,
defaultVersion
,
defaultProfile
,
forceDefaultVersionAndProfile
,
forwardCompatible
,
messages
,
intermediate
,
parser
,
false
,
includer
);
false
,
includer
,
""
,
environment
);
}
#endif
...
...
@@ -1918,7 +1919,8 @@ bool TShader::preprocess(const TBuiltInResource* builtInResources,
return
PreprocessDeferred
(
compiler
,
strings
,
numStrings
,
lengths
,
stringNames
,
preamble
,
EShOptNone
,
builtInResources
,
defaultVersion
,
defaultProfile
,
forceDefaultVersionAndProfile
,
forwardCompatible
,
message
,
includer
,
*
intermediate
,
output_string
);
forwardCompatible
,
message
,
includer
,
*
intermediate
,
output_string
,
&
environment
);
}
#endif
...
...
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