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
2ffe0bbe
Commit
2ffe0bbe
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 usampler throughout the compiler.
TRAC #23360 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Nicolas Capens
parent
9e3a3f43
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
ShaderLang.h
include/GLSLANG/ShaderLang.h
+3
-1
BaseTypes.h
src/compiler/BaseTypes.h
+2
-0
SymbolTable.cpp
src/compiler/SymbolTable.cpp
+2
-0
VariableInfo.cpp
src/compiler/VariableInfo.cpp
+2
-0
No files found.
include/GLSLANG/ShaderLang.h
View file @
2ffe0bbe
...
@@ -37,7 +37,7 @@ extern "C" {
...
@@ -37,7 +37,7 @@ extern "C" {
// Version number for shader translation API.
// Version number for shader translation API.
// It is incremented every time the API changes.
// It is incremented every time the API changes.
#define ANGLE_SH_VERSION 11
6
#define ANGLE_SH_VERSION 11
7
//
//
// The names of the following enums have been derived by replacing GL prefix
// The names of the following enums have been derived by replacing GL prefix
...
@@ -118,6 +118,8 @@ typedef enum {
...
@@ -118,6 +118,8 @@ typedef enum {
SH_SAMPLER_EXTERNAL_OES
=
0x8D66
,
SH_SAMPLER_EXTERNAL_OES
=
0x8D66
,
SH_INT_SAMPLER_2D
=
0x8DCA
,
SH_INT_SAMPLER_2D
=
0x8DCA
,
SH_INT_SAMPLER_CUBE
=
0x8DCC
,
SH_INT_SAMPLER_CUBE
=
0x8DCC
,
SH_UNSIGNED_INT_SAMPLER_2D
=
0x8DD2
,
SH_UNSIGNED_INT_SAMPLER_CUBE
=
0x8DD4
,
}
ShDataType
;
}
ShDataType
;
typedef
enum
{
typedef
enum
{
...
...
src/compiler/BaseTypes.h
View file @
2ffe0bbe
...
@@ -71,6 +71,8 @@ inline const char* getBasicString(TBasicType t)
...
@@ -71,6 +71,8 @@ inline const char* getBasicString(TBasicType t)
case
EbtSampler2DRect
:
return
"sampler2DRect"
;
break
;
case
EbtSampler2DRect
:
return
"sampler2DRect"
;
break
;
case
EbtISampler2D
:
return
"isampler2D"
;
break
;
case
EbtISampler2D
:
return
"isampler2D"
;
break
;
case
EbtISamplerCube
:
return
"isamplerCube"
;
break
;
case
EbtISamplerCube
:
return
"isamplerCube"
;
break
;
case
EbtUSampler2D
:
return
"usampler2D"
;
break
;
case
EbtUSamplerCube
:
return
"usamplerCube"
;
break
;
case
EbtStruct
:
return
"structure"
;
break
;
case
EbtStruct
:
return
"structure"
;
break
;
case
EbtInterfaceBlock
:
return
"interface block"
;
break
;
case
EbtInterfaceBlock
:
return
"interface block"
;
break
;
default:
return
"unknown type"
;
default:
return
"unknown type"
;
...
...
src/compiler/SymbolTable.cpp
View file @
2ffe0bbe
...
@@ -52,6 +52,8 @@ void TType::buildMangledName(TString& mangledName)
...
@@ -52,6 +52,8 @@ void TType::buildMangledName(TString& mangledName)
case
EbtSamplerCube
:
mangledName
+=
"sC"
;
break
;
case
EbtSamplerCube
:
mangledName
+=
"sC"
;
break
;
case
EbtISampler2D
:
mangledName
+=
"is2"
;
break
;
case
EbtISampler2D
:
mangledName
+=
"is2"
;
break
;
case
EbtISamplerCube
:
mangledName
+=
"isC"
;
break
;
case
EbtISamplerCube
:
mangledName
+=
"isC"
;
break
;
case
EbtUSampler2D
:
mangledName
+=
"us2"
;
break
;
case
EbtUSamplerCube
:
mangledName
+=
"usC"
;
break
;
case
EbtStruct
:
case
EbtStruct
:
mangledName
+=
"struct-"
;
mangledName
+=
"struct-"
;
if
(
typeName
)
if
(
typeName
)
...
...
src/compiler/VariableInfo.cpp
View file @
2ffe0bbe
...
@@ -101,6 +101,8 @@ static ShDataType getVariableDataType(const TType& type)
...
@@ -101,6 +101,8 @@ static ShDataType getVariableDataType(const TType& type)
case
EbtSampler2DRect
:
return
SH_SAMPLER_2D_RECT_ARB
;
case
EbtSampler2DRect
:
return
SH_SAMPLER_2D_RECT_ARB
;
case
EbtISampler2D
:
return
SH_INT_SAMPLER_2D
;
case
EbtISampler2D
:
return
SH_INT_SAMPLER_2D
;
case
EbtISamplerCube
:
return
SH_INT_SAMPLER_CUBE
;
case
EbtISamplerCube
:
return
SH_INT_SAMPLER_CUBE
;
case
EbtUSampler2D
:
return
SH_UNSIGNED_INT_SAMPLER_2D
;
case
EbtUSamplerCube
:
return
SH_UNSIGNED_INT_SAMPLER_CUBE
;
default:
UNREACHABLE
();
default:
UNREACHABLE
();
}
}
return
SH_NONE
;
return
SH_NONE
;
...
...
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