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
12d69368
Commit
12d69368
authored
May 09, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build fix: Make string assignment simpler to avoid some compiler issues.
Included changing related parameters to const. Should fix complaints with previous commit. See issue #879.
parent
1ee1c8e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+7
-7
Initialize.h
glslang/MachineIndependent/Initialize.h
+5
-5
No files found.
glslang/MachineIndependent/Initialize.cpp
View file @
12d69368
...
@@ -3851,8 +3851,8 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
...
@@ -3851,8 +3851,8 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
// samplerBuffer and textureBuffer types.
// samplerBuffer and textureBuffer types.
sampler
.
setTexture
(
sampler
.
type
,
sampler
.
dim
,
sampler
.
arrayed
,
sampler
.
shadow
,
sampler
.
setTexture
(
sampler
.
type
,
sampler
.
dim
,
sampler
.
arrayed
,
sampler
.
shadow
,
sampler
.
ms
);
sampler
.
ms
);
t
ypeName
=
sampler
.
getString
();
TString
textureT
ypeName
=
sampler
.
getString
();
addSamplingFunctions
(
sampler
,
typeName
,
version
,
profile
);
addSamplingFunctions
(
sampler
,
t
extureT
ypeName
,
version
,
profile
);
}
}
}
}
}
}
...
@@ -3877,7 +3877,7 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
...
@@ -3877,7 +3877,7 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
//
//
// Add all the query functions for the given type.
// Add all the query functions for the given type.
//
//
void
TBuiltIns
::
addQueryFunctions
(
TSampler
sampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
)
void
TBuiltIns
::
addQueryFunctions
(
TSampler
sampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
)
{
{
if
(
sampler
.
image
&&
((
profile
==
EEsProfile
&&
version
<
310
)
||
(
profile
!=
EEsProfile
&&
version
<
430
)))
if
(
sampler
.
image
&&
((
profile
==
EEsProfile
&&
version
<
310
)
||
(
profile
!=
EEsProfile
&&
version
<
430
)))
return
;
return
;
...
@@ -3954,7 +3954,7 @@ void TBuiltIns::addQueryFunctions(TSampler sampler, TString& typeName, int versi
...
@@ -3954,7 +3954,7 @@ void TBuiltIns::addQueryFunctions(TSampler sampler, TString& typeName, int versi
//
//
// Add all the image access functions for the given type.
// Add all the image access functions for the given type.
//
//
void
TBuiltIns
::
addImageFunctions
(
TSampler
sampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
)
void
TBuiltIns
::
addImageFunctions
(
TSampler
sampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
)
{
{
int
dims
=
dimMap
[
sampler
.
dim
];
int
dims
=
dimMap
[
sampler
.
dim
];
// most things with an array add a dimension, except for cubemaps
// most things with an array add a dimension, except for cubemaps
...
@@ -4047,7 +4047,7 @@ void TBuiltIns::addImageFunctions(TSampler sampler, TString& typeName, int versi
...
@@ -4047,7 +4047,7 @@ void TBuiltIns::addImageFunctions(TSampler sampler, TString& typeName, int versi
//
//
// Add all the subpass access functions for the given type.
// Add all the subpass access functions for the given type.
//
//
void
TBuiltIns
::
addSubpassSampling
(
TSampler
sampler
,
TString
&
typeName
,
int
/*version*/
,
EProfile
/*profile*/
)
void
TBuiltIns
::
addSubpassSampling
(
TSampler
sampler
,
const
TString
&
typeName
,
int
/*version*/
,
EProfile
/*profile*/
)
{
{
stageBuiltins
[
EShLangFragment
].
append
(
prefixes
[
sampler
.
type
]);
stageBuiltins
[
EShLangFragment
].
append
(
prefixes
[
sampler
.
type
]);
stageBuiltins
[
EShLangFragment
].
append
(
"vec4 subpassLoad"
);
stageBuiltins
[
EShLangFragment
].
append
(
"vec4 subpassLoad"
);
...
@@ -4064,7 +4064,7 @@ void TBuiltIns::addSubpassSampling(TSampler sampler, TString& typeName, int /*ve
...
@@ -4064,7 +4064,7 @@ void TBuiltIns::addSubpassSampling(TSampler sampler, TString& typeName, int /*ve
//
//
// Add all the texture lookup functions for the given type.
// Add all the texture lookup functions for the given type.
//
//
void
TBuiltIns
::
addSamplingFunctions
(
TSampler
sampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
)
void
TBuiltIns
::
addSamplingFunctions
(
TSampler
sampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
)
{
{
//
//
// texturing
// texturing
...
@@ -4294,7 +4294,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, TString& typeName, int ve
...
@@ -4294,7 +4294,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, TString& typeName, int ve
//
//
// Add all the texture gather functions for the given type.
// Add all the texture gather functions for the given type.
//
//
void
TBuiltIns
::
addGatherFunctions
(
TSampler
sampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
)
void
TBuiltIns
::
addGatherFunctions
(
TSampler
sampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
)
{
{
switch
(
sampler
.
dim
)
{
switch
(
sampler
.
dim
)
{
case
Esd2D
:
case
Esd2D
:
...
...
glslang/MachineIndependent/Initialize.h
View file @
12d69368
...
@@ -94,11 +94,11 @@ public:
...
@@ -94,11 +94,11 @@ public:
protected
:
protected
:
void
add2ndGenerationSamplingImaging
(
int
version
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
);
void
add2ndGenerationSamplingImaging
(
int
version
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
);
void
addSubpassSampling
(
TSampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addSubpassSampling
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addQueryFunctions
(
TSampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addQueryFunctions
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addImageFunctions
(
TSampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addImageFunctions
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addSamplingFunctions
(
TSampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addSamplingFunctions
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addGatherFunctions
(
TSampler
,
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addGatherFunctions
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
// Helpers for making textual representations of the permutations
// Helpers for making textual representations of the permutations
// of texturing/imaging functions.
// of texturing/imaging functions.
...
...
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