Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
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
angle
Commits
da07535f
Commit
da07535f
authored
Jun 24, 2013
by
Nicolas Capens
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support sampler3D throughout the compiler.
TRAC #23365 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Nicolas Capens
parent
28043ba7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
ShaderLang.h
include/GLSLANG/ShaderLang.h
+4
-1
BaseTypes.h
src/compiler/BaseTypes.h
+3
-0
SymbolTable.cpp
src/compiler/SymbolTable.cpp
+3
-0
No files found.
include/GLSLANG/ShaderLang.h
View file @
da07535f
...
...
@@ -37,7 +37,7 @@ extern "C" {
// Version number for shader translation API.
// It is incremented every time the API changes.
#define ANGLE_SH_VERSION 11
7
#define ANGLE_SH_VERSION 11
8
//
// The names of the following enums have been derived by replacing GL prefix
...
...
@@ -113,12 +113,15 @@ typedef enum {
SH_FLOAT_MAT4x2
=
0x8B69
,
SH_FLOAT_MAT4x3
=
0x8B6A
,
SH_SAMPLER_2D
=
0x8B5E
,
SH_SAMPLER_3D
=
0x8B5F
,
SH_SAMPLER_CUBE
=
0x8B60
,
SH_SAMPLER_2D_RECT_ARB
=
0x8B63
,
SH_SAMPLER_EXTERNAL_OES
=
0x8D66
,
SH_INT_SAMPLER_2D
=
0x8DCA
,
SH_INT_SAMPLER_3D
=
0x8DCB
,
SH_INT_SAMPLER_CUBE
=
0x8DCC
,
SH_UNSIGNED_INT_SAMPLER_2D
=
0x8DD2
,
SH_UNSIGNED_INT_SAMPLER_3D
=
0x8DD3
,
SH_UNSIGNED_INT_SAMPLER_CUBE
=
0x8DD4
,
}
ShDataType
;
...
...
src/compiler/BaseTypes.h
View file @
da07535f
...
...
@@ -69,12 +69,15 @@ inline const char* getBasicString(TBasicType t)
case
EbtUInt
:
return
"uint"
;
break
;
case
EbtBool
:
return
"bool"
;
break
;
case
EbtSampler2D
:
return
"sampler2D"
;
break
;
case
EbtSampler3D
:
return
"sampler3D"
;
break
;
case
EbtSamplerCube
:
return
"samplerCube"
;
break
;
case
EbtSamplerExternalOES
:
return
"samplerExternalOES"
;
break
;
case
EbtSampler2DRect
:
return
"sampler2DRect"
;
break
;
case
EbtISampler2D
:
return
"isampler2D"
;
break
;
case
EbtISampler3D
:
return
"isampler3D"
;
break
;
case
EbtISamplerCube
:
return
"isamplerCube"
;
break
;
case
EbtUSampler2D
:
return
"usampler2D"
;
break
;
case
EbtUSampler3D
:
return
"usampler3D"
;
break
;
case
EbtUSamplerCube
:
return
"usamplerCube"
;
break
;
case
EbtStruct
:
return
"structure"
;
break
;
case
EbtInterfaceBlock
:
return
"interface block"
;
break
;
...
...
src/compiler/SymbolTable.cpp
View file @
da07535f
...
...
@@ -49,10 +49,13 @@ void TType::buildMangledName(TString& mangledName)
case
EbtUInt
:
mangledName
+=
'u'
;
break
;
case
EbtBool
:
mangledName
+=
'b'
;
break
;
case
EbtSampler2D
:
mangledName
+=
"s2"
;
break
;
case
EbtSampler3D
:
mangledName
+=
"s3"
;
break
;
case
EbtSamplerCube
:
mangledName
+=
"sC"
;
break
;
case
EbtISampler2D
:
mangledName
+=
"is2"
;
break
;
case
EbtISampler3D
:
mangledName
+=
"is3"
;
break
;
case
EbtISamplerCube
:
mangledName
+=
"isC"
;
break
;
case
EbtUSampler2D
:
mangledName
+=
"us2"
;
break
;
case
EbtUSampler3D
:
mangledName
+=
"us3"
;
break
;
case
EbtUSamplerCube
:
mangledName
+=
"usC"
;
break
;
case
EbtStruct
:
mangledName
+=
"struct-"
;
...
...
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