SPV: Emit names of specialization constants
This commit is contained in:
@@ -269,56 +269,59 @@ Shader version: 450
|
||||
EntryPoint Vertex 4 "main"
|
||||
Source GLSL 450
|
||||
Name 4 "main"
|
||||
Decorate 7 SpecId 200
|
||||
Decorate 11 SpecId 201
|
||||
Decorate 13 SpecId 202
|
||||
Name 7 "scf1"
|
||||
Name 11 "scbt"
|
||||
Name 13 "sci2"
|
||||
Decorate 7(scf1) SpecId 200
|
||||
Decorate 11(scbt) SpecId 201
|
||||
Decorate 13(sci2) SpecId 202
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: 6(float) SpecConstant 1065353216
|
||||
7(scf1): 6(float) SpecConstant 1065353216
|
||||
8: TypeBool
|
||||
9: 6(float) Constant 0
|
||||
11: 8(bool) SpecConstantTrue
|
||||
11(scbt): 8(bool) SpecConstantTrue
|
||||
12: TypeInt 32 1
|
||||
13: 12(int) SpecConstant 2
|
||||
13(sci2): 12(int) SpecConstant 2
|
||||
14: TypeInt 32 0
|
||||
15: 14(int) Constant 0
|
||||
16: 8(bool) SpecConstantOp 171 13 15
|
||||
16: 8(bool) SpecConstantOp 171 13(sci2) 15
|
||||
17: 6(float) Constant 1065353216
|
||||
21: 12(int) Constant 0
|
||||
22: 12(int) Constant 1
|
||||
23: 12(int) SpecConstantOp 169 11 22 21
|
||||
25: 8(bool) SpecConstantOp 166 11 11
|
||||
26: 12(int) SpecConstantOp 132 13 13
|
||||
30: 8(bool) SpecConstantOp 168 11
|
||||
31: 12(int) SpecConstantOp 126 13
|
||||
33: 8(bool) SpecConstantOp 173 13 13
|
||||
35: 8(bool) SpecConstantOp 165 11 11
|
||||
36: 8(bool) SpecConstantOp 171 13 13
|
||||
23: 12(int) SpecConstantOp 169 11(scbt) 22 21
|
||||
25: 8(bool) SpecConstantOp 166 11(scbt) 11(scbt)
|
||||
26: 12(int) SpecConstantOp 132 13(sci2) 13(sci2)
|
||||
30: 8(bool) SpecConstantOp 168 11(scbt)
|
||||
31: 12(int) SpecConstantOp 126 13(sci2)
|
||||
33: 8(bool) SpecConstantOp 173 13(sci2) 13(sci2)
|
||||
35: 8(bool) SpecConstantOp 165 11(scbt) 11(scbt)
|
||||
36: 8(bool) SpecConstantOp 171 13(sci2) 13(sci2)
|
||||
37: TypeVector 12(int) 2
|
||||
38: 37(ivec2) SpecConstantComposite 13 13
|
||||
39: 37(ivec2) SpecConstantComposite 13 13
|
||||
40: 37(ivec2) SpecConstantComposite 13 13
|
||||
38: 37(ivec2) SpecConstantComposite 13(sci2) 13(sci2)
|
||||
39: 37(ivec2) SpecConstantComposite 13(sci2) 13(sci2)
|
||||
40: 37(ivec2) SpecConstantComposite 13(sci2) 13(sci2)
|
||||
41: 14(int) Constant 2
|
||||
42: TypeArray 37(ivec2) 41
|
||||
44: TypeVector 6(float) 2
|
||||
48: TypeArray 44(fvec2) 41
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
10: 8(bool) FOrdNotEqual 7 9
|
||||
18: 6(float) Select 11 17 9
|
||||
19: 6(float) ConvertSToF 13
|
||||
20: 12(int) ConvertFToS 7
|
||||
24: 6(float) FMul 7 7
|
||||
27: 6(float) ConvertSToF 13
|
||||
28: 6(float) FAdd 7 27
|
||||
29: 6(float) FNegate 7
|
||||
32: 8(bool) FOrdGreaterThan 7 7
|
||||
34: 8(bool) FOrdNotEqual 7 7
|
||||
10: 8(bool) FOrdNotEqual 7(scf1) 9
|
||||
18: 6(float) Select 11(scbt) 17 9
|
||||
19: 6(float) ConvertSToF 13(sci2)
|
||||
20: 12(int) ConvertFToS 7(scf1)
|
||||
24: 6(float) FMul 7(scf1) 7(scf1)
|
||||
27: 6(float) ConvertSToF 13(sci2)
|
||||
28: 6(float) FAdd 7(scf1) 27
|
||||
29: 6(float) FNegate 7(scf1)
|
||||
32: 8(bool) FOrdGreaterThan 7(scf1) 7(scf1)
|
||||
34: 8(bool) FOrdNotEqual 7(scf1) 7(scf1)
|
||||
43: 42 CompositeConstruct 39 40
|
||||
45: 44(fvec2) CompositeConstruct 7 7
|
||||
46: 44(fvec2) CompositeConstruct 7 7
|
||||
47: 44(fvec2) CompositeConstruct 7 7
|
||||
45: 44(fvec2) CompositeConstruct 7(scf1) 7(scf1)
|
||||
46: 44(fvec2) CompositeConstruct 7(scf1) 7(scf1)
|
||||
47: 44(fvec2) CompositeConstruct 7(scf1) 7(scf1)
|
||||
49: 48 CompositeConstruct 46 47
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user