qining
0840838d17
Support specialization composite constants
Fix issue #163, support creation and reference of composite type
specialization constants.
e.g.:
```
layout(constant_id = 200) const float myfloat = 1.25;
layout(constant_id = 201) const int myint = 14;
struct structtype {
float f;
int i;
};
const structtype outer_struct_var = {myfloat, myint};
void main(){}
```
generated code (use glslangValidator):
```
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 12
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main"
Source GLSL 450
Name 4 "main"
Name 10 "structtype"
MemberName 10(structtype) 0 "f"
MemberName 10(structtype) 1 "i"
Decorate 7 SpecId 200
Decorate 9 SpecId 201
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: 6(float) SpecConstant 1067450368
8: TypeInt 32 1
9: 8(int) SpecConstant 14
10(structtype): TypeStruct 6(float) 8(int)
11:10(structtype) SpecConstantComposite 7 9
4(main): 2 Function None 3
5: Label
Return
FunctionEnd
```
Rname two function names to match their functionalities.
1) Rename `GlslangToSpvTraverser::createSpvSpecConstant()` to
`createSpvConstant()`;
2) Rename `GlslangToSpvTraverser::createSpvConstant()` to
`createSpvConstantFromConstUnionArray()`
Add function `GlslangToSpvTraverser::createSpvConstantFromSubTree()` to
handle constant creation from sub trees (e.g.: specialization constants).
Related PR: #208
2016-03-24 18:04:00 -04:00
..
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-19 11:05:44 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-02-02 15:59:12 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-11 17:54:35 -07:00
2015-12-10 18:01:54 -07:00
2015-12-22 16:39:07 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-03-20 00:46:02 -06:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-01-16 20:37:43 -07:00
2016-01-16 20:37:43 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-13 10:59:17 -07:00
2015-12-11 17:54:35 -07:00
2015-12-13 10:59:17 -07:00
2015-12-10 18:01:54 -07:00
2015-12-13 10:59:17 -07:00
2015-12-11 17:54:35 -07:00
2015-12-10 18:01:54 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-13 10:59:17 -07:00
2015-12-11 17:54:35 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-02-15 21:46:55 -07:00
2016-02-01 11:57:33 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-13 10:59:17 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-13 10:59:17 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-02-15 21:46:55 -07:00
2015-12-10 18:01:54 -07:00
2016-01-22 15:40:24 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-07-27 13:07:52 -04:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-07-27 13:07:52 -04:00
2015-12-10 18:01:54 -07:00
2015-08-29 23:15:13 +00:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-07-14 16:02:25 -04:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-07-31 19:41:19 -04:00
2015-12-10 18:01:54 -07:00
2015-07-31 19:41:19 -04:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-07-14 16:02:25 -04:00
2015-12-10 18:01:54 -07:00
2016-03-09 15:11:56 -05:00
2016-03-09 15:11:56 -05:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-07-14 16:02:25 -04:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-01-13 19:04:19 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-01 13:45:25 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-03-03 22:29:11 -07:00
2016-03-18 16:26:23 +08:00
2016-02-01 13:45:25 -07:00
2016-02-01 13:45:25 -07:00
2016-03-07 23:05:59 -05:00
2016-02-19 12:21:50 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-03-03 14:38:51 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-21 21:02:08 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-21 21:02:08 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-21 21:02:08 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-03-11 12:06:41 -05:00
2016-02-15 21:46:55 -07:00
2016-03-15 18:19:26 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-03-08 21:43:14 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-19 22:24:03 +08:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-03-24 18:04:00 -04:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2015-12-10 18:01:54 -07:00
2016-02-15 21:46:55 -07:00
2016-02-15 21:46:55 -07:00
2016-03-08 21:43:14 -07:00
2015-12-10 18:01:54 -07:00