Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
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
angle
Commits
6440d14b
Commit
6440d14b
authored
Aug 27, 2013
by
Jamie Madill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile errors in the essl to hlsl standalone translator.
ANGLEBUG=469 R=shannonwoods@chromium.org Review URL:
https://codereview.appspot.com/13281043
parent
12505491
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
translator.cpp
samples/translator/translator.cpp
+6
-4
No files found.
samples/translator/translator.cpp
View file @
6440d14b
...
...
@@ -83,7 +83,7 @@ int main(int argc, char* argv[])
case
'i'
:
compileOptions
|=
SH_INTERMEDIATE_TREE
;
break
;
case
'm'
:
compileOptions
|=
SH_MAP_LONG_VARIABLE_NAMES
;
break
;
case
'o'
:
compileOptions
|=
SH_OBJECT_CODE
;
break
;
case
'u'
:
compileOptions
|=
SH_
ATTRIBUTES_UNIFORM
S
;
break
;
case
'u'
:
compileOptions
|=
SH_
VARIABLE
S
;
break
;
case
'l'
:
compileOptions
|=
SH_UNROLL_FOR_LOOP_WITH_INTEGER_INDEX
;
break
;
case
'e'
:
compileOptions
|=
SH_EMULATE_BUILT_IN_FUNCTIONS
;
break
;
case
'd'
:
compileOptions
|=
SH_DEPENDENCY_GRAPH
;
break
;
...
...
@@ -172,7 +172,7 @@ int main(int argc, char* argv[])
LogMsg
(
"END"
,
"COMPILER"
,
numCompiles
,
"OBJ CODE"
);
printf
(
"
\n\n
"
);
}
if
(
compiled
&&
(
compileOptions
&
SH_
ATTRIBUTES_UNIFORM
S
))
{
if
(
compiled
&&
(
compileOptions
&
SH_
VARIABLE
S
))
{
LogMsg
(
"BEGIN"
,
"COMPILER"
,
numCompiles
,
"ACTIVE ATTRIBS"
);
PrintActiveVariables
(
compiler
,
SH_ACTIVE_ATTRIBUTES
,
(
compileOptions
&
SH_MAP_LONG_VARIABLE_NAMES
)
!=
0
);
LogMsg
(
"END"
,
"COMPILER"
,
numCompiles
,
"ACTIVE ATTRIBS"
);
...
...
@@ -305,15 +305,17 @@ void PrintActiveVariables(ShHandle compiler, ShShaderInfo varType, bool mapLongV
size_t
activeVars
=
0
;
int
size
=
0
;
ShDataType
type
=
SH_NONE
;
ShPrecisionType
precision
=
SH_PRECISION_UNDEFINED
;
int
staticUse
=
0
;
const
char
*
typeName
=
NULL
;
ShGetInfo
(
compiler
,
varType
,
&
activeVars
);
for
(
size_t
i
=
0
;
i
<
activeVars
;
++
i
)
{
switch
(
varType
)
{
case
SH_ACTIVE_ATTRIBUTES
:
ShGet
ActiveAttrib
(
compiler
,
static_cast
<
int
>
(
i
),
NULL
,
&
size
,
&
typ
e
,
name
,
mappedName
);
ShGet
VariableInfo
(
compiler
,
SH_ACTIVE_ATTRIBUTES
,
static_cast
<
int
>
(
i
),
NULL
,
&
size
,
&
type
,
&
precision
,
&
staticUs
e
,
name
,
mappedName
);
break
;
case
SH_ACTIVE_UNIFORMS
:
ShGet
ActiveUniform
(
compiler
,
static_cast
<
int
>
(
i
),
NULL
,
&
size
,
&
typ
e
,
name
,
mappedName
);
ShGet
VariableInfo
(
compiler
,
SH_ACTIVE_UNIFORMS
,
static_cast
<
int
>
(
i
),
NULL
,
&
size
,
&
type
,
&
precision
,
&
staticUs
e
,
name
,
mappedName
);
break
;
default:
assert
(
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