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
e66dace9
Commit
e66dace9
authored
Jul 31, 2019
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Web: First pass of tabling the built-in function declarations.
Doing this much saved about 11.5K, including adding all the infrastructure.
parent
23d27751
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
size
Test/baseResults/size
+1
-1
spv.specConstant.vert.out
Test/baseResults/spv.specConstant.vert.out
+3
-3
Initialize.cpp
glslang/MachineIndependent/Initialize.cpp
+0
-0
Initialize.h
glslang/MachineIndependent/Initialize.h
+2
-0
No files found.
Test/baseResults/size
View file @
e66dace9
10
97728
../build/install/bin/glslangValidator.exe
10
85952
../build/install/bin/glslangValidator.exe
Test/baseResults/spv.specConstant.vert.out
View file @
e66dace9
...
...
@@ -11,7 +11,7 @@ spv.specConstant.vert
Source GLSL 400
Name 4 "main"
Name 9 "arraySize"
Name 14 "foo(vf4[s27
69
];"
Name 14 "foo(vf4[s27
72
];"
Name 13 "p"
Name 17 "builtin_spec_constant("
Name 20 "color"
...
...
@@ -102,10 +102,10 @@ spv.specConstant.vert
Store 20(color) 46
48: 10 Load 22(ucol)
Store 47(param) 48
49: 2 FunctionCall 14(foo(vf4[s27
69
];) 47(param)
49: 2 FunctionCall 14(foo(vf4[s27
72
];) 47(param)
Return
FunctionEnd
14(foo(vf4[s27
69
];): 2 Function None 12
14(foo(vf4[s27
72
];): 2 Function None 12
13(p): 11(ptr) FunctionParameter
15: Label
54: 24(ptr) AccessChain 53(dupUcol) 23
...
...
glslang/MachineIndependent/Initialize.cpp
View file @
e66dace9
This diff is collapsed.
Click to expand it.
glslang/MachineIndependent/Initialize.h
View file @
e66dace9
...
...
@@ -91,6 +91,8 @@ public:
void
identifyBuiltIns
(
int
version
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
,
EShLanguage
language
,
TSymbolTable
&
symbolTable
,
const
TBuiltInResource
&
resources
);
protected
:
void
addTabledBuiltins
(
int
version
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
);
void
relateTabledBuiltins
(
int
version
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
,
EShLanguage
,
TSymbolTable
&
);
void
add2ndGenerationSamplingImaging
(
int
version
,
EProfile
profile
,
const
SpvVersion
&
spvVersion
);
void
addSubpassSampling
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
void
addQueryFunctions
(
TSampler
,
const
TString
&
typeName
,
int
version
,
EProfile
profile
);
...
...
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