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
28660bb5
Commit
28660bb5
authored
Aug 11, 2016
by
John Kessenich
Committed by
GitHub
Aug 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #450 from dankbaker/standalone_change
Allowing explicit specification of shader compiltion type via -T opti…
parents
359dcee7
5afdd781
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
StandAlone.cpp
StandAlone/StandAlone.cpp
+15
-0
No files found.
StandAlone/StandAlone.cpp
View file @
28660bb5
...
@@ -155,6 +155,7 @@ int Options = 0;
...
@@ -155,6 +155,7 @@ int Options = 0;
const
char
*
ExecutableName
=
nullptr
;
const
char
*
ExecutableName
=
nullptr
;
const
char
*
binaryFileName
=
nullptr
;
const
char
*
binaryFileName
=
nullptr
;
const
char
*
entryPointName
=
nullptr
;
const
char
*
entryPointName
=
nullptr
;
const
char
*
shaderStageName
=
nullptr
;
//
//
// Create the default name for saving a binary if -o is not provided.
// Create the default name for saving a binary if -o is not provided.
...
@@ -236,6 +237,15 @@ void ProcessArguments(int argc, char* argv[])
...
@@ -236,6 +237,15 @@ void ProcessArguments(int argc, char* argv[])
Options
|=
EOptionVulkanRules
;
Options
|=
EOptionVulkanRules
;
Options
|=
EOptionLinkProgram
;
Options
|=
EOptionLinkProgram
;
break
;
break
;
case
'S'
:
shaderStageName
=
argv
[
1
];
if
(
argc
>
0
)
{
argc
--
;
argv
++
;
}
else
Error
(
"no <stage> specified for -S"
);
break
;
case
'G'
:
case
'G'
:
Options
|=
EOptionSpv
;
Options
|=
EOptionSpv
;
Options
|=
EOptionLinkProgram
;
Options
|=
EOptionLinkProgram
;
...
@@ -685,6 +695,9 @@ EShLanguage FindLanguage(const std::string& name)
...
@@ -685,6 +695,9 @@ EShLanguage FindLanguage(const std::string& name)
}
}
std
::
string
suffix
=
name
.
substr
(
ext
+
1
,
std
::
string
::
npos
);
std
::
string
suffix
=
name
.
substr
(
ext
+
1
,
std
::
string
::
npos
);
if
(
shaderStageName
)
suffix
=
shaderStageName
;
if
(
suffix
==
"vert"
)
if
(
suffix
==
"vert"
)
return
EShLangVertex
;
return
EShLangVertex
;
else
if
(
suffix
==
"tesc"
)
else
if
(
suffix
==
"tesc"
)
...
@@ -778,6 +791,8 @@ void usage()
...
@@ -778,6 +791,8 @@ void usage()
" -H print human readable form of SPIR-V; turns on -V
\n
"
" -H print human readable form of SPIR-V; turns on -V
\n
"
" -E print pre-processed GLSL; cannot be used with -l;
\n
"
" -E print pre-processed GLSL; cannot be used with -l;
\n
"
" errors will appear on stderr.
\n
"
" errors will appear on stderr.
\n
"
" -S <stage> uses explicit stage specified, rather then the file extension.
\n
"
" valid choices are vert, tesc, tese, geom, frag, or comp
\n
"
" -c configuration dump;
\n
"
" -c configuration dump;
\n
"
" creates the default configuration file (redirect to a .conf file)
\n
"
" creates the default configuration file (redirect to a .conf file)
\n
"
" -C cascading errors; risks crashes from accumulation of error recoveries
\n
"
" -C cascading errors; risks crashes from accumulation of error recoveries
\n
"
...
...
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