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
15017db9
Commit
15017db9
authored
Feb 15, 2017
by
Flavio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed tabs and replaced with spaces. Changed layout for "else if"
parent
aea3c890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+7
-7
StandAlone.cpp
StandAlone/StandAlone.cpp
+12
-14
No files found.
SPIRV/GlslangToSpv.cpp
View file @
15017db9
...
@@ -5259,10 +5259,10 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
...
@@ -5259,10 +5259,10 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
std
::
ofstream
out
;
std
::
ofstream
out
;
out
.
open
(
baseName
,
std
::
ios
::
binary
|
std
::
ios
::
out
);
out
.
open
(
baseName
,
std
::
ios
::
binary
|
std
::
ios
::
out
);
out
<<
"
\t
// "
GLSLANG_REVISION
" "
GLSLANG_DATE
<<
std
::
endl
;
out
<<
"
\t
// "
GLSLANG_REVISION
" "
GLSLANG_DATE
<<
std
::
endl
;
if
(
varName
!=
nullptr
)
{
if
(
varName
!=
nullptr
)
{
out
<<
"
\t
#pragma once"
<<
std
::
endl
;
out
<<
"
\t
#pragma once"
<<
std
::
endl
;
out
<<
"const uint32_t "
<<
varName
<<
"[] = {"
<<
std
::
endl
;
out
<<
"const uint32_t "
<<
varName
<<
"[] = {"
<<
std
::
endl
;
}
}
const
int
WORDS_PER_LINE
=
8
;
const
int
WORDS_PER_LINE
=
8
;
for
(
int
i
=
0
;
i
<
(
int
)
spirv
.
size
();
i
+=
WORDS_PER_LINE
)
{
for
(
int
i
=
0
;
i
<
(
int
)
spirv
.
size
();
i
+=
WORDS_PER_LINE
)
{
out
<<
"
\t
"
;
out
<<
"
\t
"
;
...
@@ -5275,9 +5275,9 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
...
@@ -5275,9 +5275,9 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
}
}
out
<<
std
::
endl
;
out
<<
std
::
endl
;
}
}
if
(
varName
!=
nullptr
)
{
if
(
varName
!=
nullptr
)
{
out
<<
"};"
;
out
<<
"};"
;
}
}
out
.
close
();
out
.
close
();
}
}
...
...
StandAlone/StandAlone.cpp
View file @
15017db9
...
@@ -303,20 +303,18 @@ void ProcessArguments(int argc, char* argv[])
...
@@ -303,20 +303,18 @@ void ProcessArguments(int argc, char* argv[])
}
else
if
(
lowerword
==
"no-storage-format"
||
// synonyms
}
else
if
(
lowerword
==
"no-storage-format"
||
// synonyms
lowerword
==
"nsf"
)
{
lowerword
==
"nsf"
)
{
Options
|=
EOptionNoStorageFormat
;
Options
|=
EOptionNoStorageFormat
;
}
}
else
if
(
lowerword
==
"variable-name"
||
// synonyms
else
if
(
lowerword
==
"variable-name"
||
// synonyms
lowerword
==
"vn"
)
{
lowerword
==
"vn"
)
{
Options
|=
EOptionOutputHexadecimal
;
Options
|=
EOptionOutputHexadecimal
;
variableName
=
argv
[
1
];
variableName
=
argv
[
1
];
if
(
argc
>
0
)
{
if
(
argc
>
0
)
{
argc
--
;
argc
--
;
argv
++
;
argv
++
;
}
else
}
Error
(
"no <C-variable-name> provided for --variable-name"
);
else
break
;
Error
(
"no <C-variable-name> provided for --variable-name"
);
}
break
;
else
if
(
lowerword
==
"source-entrypoint"
||
// synonyms
}
else
if
(
lowerword
==
"source-entrypoint"
||
// synonyms
lowerword
==
"sep"
)
{
lowerword
==
"sep"
)
{
sourceEntryPointName
=
argv
[
1
];
sourceEntryPointName
=
argv
[
1
];
if
(
argc
>
0
)
{
if
(
argc
>
0
)
{
...
...
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