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
3a44d7fe
Commit
3a44d7fe
authored
May 11, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glslang spvIR.h: Portability improvement.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31139
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
5d3e1233
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spvIR.h
SPIRV/spvIR.h
+3
-3
No files found.
SPIRV/spvIR.h
View file @
3a44d7fe
...
@@ -111,7 +111,7 @@ public:
...
@@ -111,7 +111,7 @@ public:
}
}
}
}
Op
getOpCode
()
const
{
return
opCode
;
}
Op
getOpCode
()
const
{
return
opCode
;
}
int
getNumOperands
()
const
{
return
operands
.
size
();
}
int
getNumOperands
()
const
{
return
(
int
)
operands
.
size
();
}
Id
getResultId
()
const
{
return
resultId
;
}
Id
getResultId
()
const
{
return
resultId
;
}
Id
getTypeId
()
const
{
return
typeId
;
}
Id
getTypeId
()
const
{
return
typeId
;
}
Id
getIdOperand
(
int
op
)
const
{
return
operands
[
op
];
}
Id
getIdOperand
(
int
op
)
const
{
return
operands
[
op
];
}
...
@@ -127,9 +127,9 @@ public:
...
@@ -127,9 +127,9 @@ public:
++
wordCount
;
++
wordCount
;
if
(
resultId
)
if
(
resultId
)
++
wordCount
;
++
wordCount
;
wordCount
+=
operands
.
size
();
wordCount
+=
(
unsigned
int
)
operands
.
size
();
if
(
string
)
if
(
string
)
wordCount
+=
string
->
size
();
wordCount
+=
(
unsigned
int
)
string
->
size
();
// Write out the beginning of the instruction
// Write out the beginning of the instruction
out
.
push_back
(((
wordCount
)
<<
WordCountShift
)
|
opCode
);
out
.
push_back
(((
wordCount
)
<<
WordCountShift
)
|
opCode
);
...
...
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