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
b49806b0
Commit
b49806b0
authored
Aug 02, 2016
by
Dan Baker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some casts that warn when compiled to 64 bit (size_t is 64 bit rather then 32 bit)
parent
1176530b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hlslParseHelper.cpp
hlsl/hlslParseHelper.cpp
+3
-3
No files found.
hlsl/hlslParseHelper.cpp
View file @
b49806b0
...
...
@@ -989,7 +989,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
const
TSampler
&
texSampler
=
texType
.
getSampler
();
const
TSamplerDim
dim
=
texSampler
.
dim
;
const
int
numArgs
=
argAggregate
->
getSequence
().
size
();
const
int
numArgs
=
(
int
)
argAggregate
->
getSequence
().
size
();
int
numDims
=
0
;
...
...
@@ -1175,7 +1175,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
lodComponent
->
setType
(
TType
(
coordBaseType
,
EvqTemporary
,
1
));
}
const
int
numArgs
=
argAggregate
->
getSequence
().
size
();
const
int
numArgs
=
(
int
)
argAggregate
->
getSequence
().
size
();
const
bool
hasOffset
=
((
!
isMS
&&
numArgs
==
3
)
||
(
isMS
&&
numArgs
==
4
));
// Create texel fetch
...
...
@@ -1219,7 +1219,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
TIntermTyped
*
argLod
=
argAggregate
->
getSequence
()[
3
]
->
getAsTyped
();
TIntermTyped
*
argOffset
=
nullptr
;
const
int
numArgs
=
argAggregate
->
getSequence
().
size
();
const
int
numArgs
=
(
int
)
argAggregate
->
getSequence
().
size
();
if
(
numArgs
==
5
)
// offset, if present
argOffset
=
argAggregate
->
getSequence
()[
4
]
->
getAsTyped
();
...
...
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