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
6c479796
Unverified
Commit
6c479796
authored
Dec 10, 2019
by
John Kessenich
Committed by
GitHub
Dec 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2021 from KhronosGroup/fix-2020-inconsistent-HLSL
Fix #2020: PR #1977 broke HLSL member consistency, this fixes it.
parents
1afa2b8c
1843c0c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
Types.h
glslang/Include/Types.h
+8
-8
SymbolTable.cpp
glslang/MachineIndependent/SymbolTable.cpp
+2
-0
No files found.
glslang/Include/Types.h
View file @
6c479796
...
...
@@ -82,11 +82,6 @@ struct TSampler { // misnomer now; includes images, textures without sampler,
bool
sampler
:
1
;
// true means a pure sampler, other fields should be clear()
#ifdef GLSLANG_WEB
unsigned
int
getVectorSize
()
const
{
return
4
;
}
void
clearReturnStruct
()
const
{
}
bool
hasReturnStruct
()
const
{
return
false
;
}
unsigned
getStructReturnIndex
()
const
{
return
0
;
}
bool
is1D
()
const
{
return
false
;
}
bool
isBuffer
()
const
{
return
false
;
}
bool
isRect
()
const
{
return
false
;
}
...
...
@@ -111,10 +106,12 @@ struct TSampler { // misnomer now; includes images, textures without sampler,
bool
external
:
1
;
// GL_OES_EGL_image_external
bool
yuv
:
1
;
// GL_EXT_YUV_target
#ifdef ENABLE_HLSL
unsigned
int
getVectorSize
()
const
{
return
vectorSize
;
}
void
clearReturnStruct
()
{
structReturnIndex
=
noReturnStruct
;
}
bool
hasReturnStruct
()
const
{
return
structReturnIndex
!=
noReturnStruct
;
}
unsigned
getStructReturnIndex
()
const
{
return
structReturnIndex
;
}
#endif
bool
is1D
()
const
{
return
dim
==
Esd1D
;
}
bool
isBuffer
()
const
{
return
dim
==
EsdBuffer
;
}
...
...
@@ -225,9 +222,12 @@ struct TSampler { // misnomer now; includes images, textures without sampler,
isCombined
()
==
right
.
isCombined
()
&&
isPureSampler
()
==
right
.
isPureSampler
()
&&
isExternal
()
==
right
.
isExternal
()
&&
isYuv
()
==
right
.
isYuv
()
&&
getVectorSize
()
==
right
.
getVectorSize
()
&&
getStructReturnIndex
()
==
right
.
getStructReturnIndex
();
isYuv
()
==
right
.
isYuv
()
#ifdef ENABLE_HLSL
&&
getVectorSize
()
==
right
.
getVectorSize
()
&&
getStructReturnIndex
()
==
right
.
getStructReturnIndex
()
#endif
;
}
bool
operator
!=
(
const
TSampler
&
right
)
const
...
...
glslang/MachineIndependent/SymbolTable.cpp
View file @
6c479796
...
...
@@ -114,6 +114,7 @@ void TType::buildMangledName(TString& mangledName) const
default
:
break
;
// some compilers want this
}
#ifdef ENABLE_HLSL
if
(
sampler
.
hasReturnStruct
())
{
// Name mangle for sampler return struct uses struct table index.
mangledName
+=
"-tx-struct"
;
...
...
@@ -129,6 +130,7 @@ void TType::buildMangledName(TString& mangledName) const
case
4
:
break
;
// default to prior name mangle behavior
}
}
#endif
if
(
sampler
.
isMultiSample
())
mangledName
+=
"M"
;
...
...
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