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
69670380
Unverified
Commit
69670380
authored
Oct 11, 2019
by
John Kessenich
Committed by
GitHub
Oct 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1888 from Roy-AMD/Adjusting-code-interface
Adjusting code interface
parents
f99beb50
35dabea7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
3 deletions
+11
-3
Types.h
glslang/Include/Types.h
+4
-1
intermediate.h
glslang/Include/intermediate.h
+1
-0
Intermediate.cpp
glslang/MachineIndependent/Intermediate.cpp
+0
-0
localintermediate.h
glslang/MachineIndependent/localintermediate.h
+3
-1
ShaderLang.h
glslang/Public/ShaderLang.h
+3
-1
No files found.
glslang/Include/Types.h
View file @
69670380
...
@@ -135,6 +135,8 @@ struct TSampler { // misnomer now; includes images, textures without sampler,
...
@@ -135,6 +135,8 @@ struct TSampler { // misnomer now; includes images, textures without sampler,
bool
isYuv
()
const
{
return
yuv
;
}
bool
isYuv
()
const
{
return
yuv
;
}
#endif
#endif
void
setCombined
(
bool
c
)
{
combined
=
c
;
}
void
setCombined
(
bool
c
)
{
combined
=
c
;
}
void
setBasicType
(
TBasicType
t
)
{
type
=
t
;
};
TBasicType
getBasicType
()
const
{
return
type
;
};
bool
isShadow
()
const
{
return
shadow
;
}
bool
isShadow
()
const
{
return
shadow
;
}
bool
isArrayed
()
const
{
return
arrayed
;
}
bool
isArrayed
()
const
{
return
arrayed
;
}
...
@@ -2193,7 +2195,8 @@ public:
...
@@ -2193,7 +2195,8 @@ public:
const
TTypeList
*
getStruct
()
const
{
assert
(
isStruct
());
return
structure
;
}
const
TTypeList
*
getStruct
()
const
{
assert
(
isStruct
());
return
structure
;
}
void
setStruct
(
TTypeList
*
s
)
{
assert
(
isStruct
());
structure
=
s
;
}
void
setStruct
(
TTypeList
*
s
)
{
assert
(
isStruct
());
structure
=
s
;
}
TTypeList
*
getWritableStruct
()
const
{
assert
(
isStruct
());
return
structure
;
}
// This should only be used when known to not be sharing with other threads
TTypeList
*
getWritableStruct
()
const
{
assert
(
isStruct
());
return
structure
;
}
// This should only be used when known to not be sharing with other threads
void
setBasicType
(
const
TBasicType
&
t
)
{
basicType
=
t
;
}
int
computeNumComponents
()
const
int
computeNumComponents
()
const
{
{
int
components
=
0
;
int
components
=
0
;
...
...
glslang/Include/intermediate.h
View file @
69670380
...
@@ -1189,6 +1189,7 @@ public:
...
@@ -1189,6 +1189,7 @@ public:
virtual
void
traverse
(
TIntermTraverser
*
);
virtual
void
traverse
(
TIntermTraverser
*
);
TOperator
getFlowOp
()
const
{
return
flowOp
;
}
TOperator
getFlowOp
()
const
{
return
flowOp
;
}
TIntermTyped
*
getExpression
()
const
{
return
expression
;
}
TIntermTyped
*
getExpression
()
const
{
return
expression
;
}
void
setExpression
(
TIntermTyped
*
pExpression
)
{
expression
=
pExpression
;
}
protected
:
protected
:
TOperator
flowOp
;
TOperator
flowOp
;
TIntermTyped
*
expression
;
TIntermTyped
*
expression
;
...
...
glslang/MachineIndependent/Intermediate.cpp
View file @
69670380
This diff is collapsed.
Click to expand it.
glslang/MachineIndependent/localintermediate.h
View file @
69670380
...
@@ -786,6 +786,9 @@ public:
...
@@ -786,6 +786,9 @@ public:
void
merge
(
TInfoSink
&
,
TIntermediate
&
);
void
merge
(
TInfoSink
&
,
TIntermediate
&
);
void
finalCheck
(
TInfoSink
&
,
bool
keepUncalled
);
void
finalCheck
(
TInfoSink
&
,
bool
keepUncalled
);
bool
buildConvertOp
(
TBasicType
dst
,
TBasicType
src
,
TOperator
&
convertOp
)
const
;
TIntermTyped
*
createConversion
(
TBasicType
convertTo
,
TIntermTyped
*
node
)
const
;
void
addIoAccessed
(
const
TString
&
name
)
{
ioAccessed
.
insert
(
name
);
}
void
addIoAccessed
(
const
TString
&
name
)
{
ioAccessed
.
insert
(
name
);
}
bool
inIoAccessed
(
const
TString
&
name
)
const
{
return
ioAccessed
.
find
(
name
)
!=
ioAccessed
.
end
();
}
bool
inIoAccessed
(
const
TString
&
name
)
const
{
return
ioAccessed
.
find
(
name
)
!=
ioAccessed
.
end
();
}
...
@@ -876,7 +879,6 @@ protected:
...
@@ -876,7 +879,6 @@ protected:
bool
specConstantPropagates
(
const
TIntermTyped
&
,
const
TIntermTyped
&
);
bool
specConstantPropagates
(
const
TIntermTyped
&
,
const
TIntermTyped
&
);
void
performTextureUpgradeAndSamplerRemovalTransformation
(
TIntermNode
*
root
);
void
performTextureUpgradeAndSamplerRemovalTransformation
(
TIntermNode
*
root
);
bool
isConversionAllowed
(
TOperator
op
,
TIntermTyped
*
node
)
const
;
bool
isConversionAllowed
(
TOperator
op
,
TIntermTyped
*
node
)
const
;
TIntermTyped
*
createConversion
(
TBasicType
convertTo
,
TIntermTyped
*
node
)
const
;
std
::
tuple
<
TBasicType
,
TBasicType
>
getConversionDestinatonType
(
TBasicType
type0
,
TBasicType
type1
,
TOperator
op
)
const
;
std
::
tuple
<
TBasicType
,
TBasicType
>
getConversionDestinatonType
(
TBasicType
type0
,
TBasicType
type1
,
TOperator
op
)
const
;
// JohnK: I think this function should go away.
// JohnK: I think this function should go away.
...
...
glslang/Public/ShaderLang.h
View file @
69670380
...
@@ -487,6 +487,8 @@ public:
...
@@ -487,6 +487,8 @@ public:
environment
.
target
.
version
=
version
;
environment
.
target
.
version
=
version
;
}
}
void
getStrings
(
const
char
*
const
*
&
s
,
int
&
n
)
{
s
=
strings
;
n
=
numStrings
;
};
#ifdef ENABLE_HLSL
#ifdef ENABLE_HLSL
void
setEnvTargetHlslFunctionality1
()
{
environment
.
target
.
hlslFunctionality1
=
true
;
}
void
setEnvTargetHlslFunctionality1
()
{
environment
.
target
.
hlslFunctionality1
=
true
;
}
bool
getEnvTargetHlslFunctionality1
()
const
{
return
environment
.
target
.
hlslFunctionality1
;
}
bool
getEnvTargetHlslFunctionality1
()
const
{
return
environment
.
target
.
hlslFunctionality1
;
}
...
@@ -773,7 +775,7 @@ public:
...
@@ -773,7 +775,7 @@ public:
TProgram
();
TProgram
();
virtual
~
TProgram
();
virtual
~
TProgram
();
void
addShader
(
TShader
*
shader
)
{
stages
[
shader
->
stage
].
push_back
(
shader
);
}
void
addShader
(
TShader
*
shader
)
{
stages
[
shader
->
stage
].
push_back
(
shader
);
}
std
::
list
<
TShader
*>&
getShaders
(
EShLanguage
stage
)
{
return
stages
[
stage
];
};
// Link Validation interface
// Link Validation interface
bool
link
(
EShMessages
);
bool
link
(
EShMessages
);
const
char
*
getInfoLog
();
const
char
*
getInfoLog
();
...
...
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