SPV: Emit names of specialization constants

This commit is contained in:
Endre Oma
2017-01-31 21:08:19 +01:00
parent 7e134cdfbe
commit ad58d45437
9 changed files with 192 additions and 157 deletions

View File

@@ -105,6 +105,9 @@ Warning, version 450 is not yet complete; most version-specific features are pre
MemberName 523(B2) 6 "u"
MemberName 523(B2) 7 "v"
Name 525 ""
Name 526 "sf16"
Name 527 "sf"
Name 528 "sd"
Decorate 512 ArrayStride 16
Decorate 513 ArrayStride 32
MemberDecorate 514(S) 0 Offset 0
@@ -145,9 +148,9 @@ Warning, version 450 is not yet complete; most version-specific features are pre
MemberDecorate 523(B2) 7 Offset 72
Decorate 523(B2) BufferBlock
Decorate 525 DescriptorSet 0
Decorate 526 SpecId 100
Decorate 527 SpecId 101
Decorate 528 SpecId 102
Decorate 526(sf16) SpecId 100
Decorate 527(sf) SpecId 101
Decorate 528(sd) SpecId 102
2: TypeVoid
3: TypeFunction 2
28: TypeFloat 16
@@ -223,14 +226,14 @@ Warning, version 450 is not yet complete; most version-specific features are pre
523(B2): TypeStruct 28(float) 29(fvec2) 151(fvec3) 519 406 520 521(S) 522
524: TypePointer Uniform 523(B2)
525: 524(ptr) Variable Uniform
526: 28(float) SpecConstant 12288
527: 164(float) SpecConstant 1048576000
528: 172(float) SpecConstant 0 1071644672
529: 164(float) SpecConstantOp 115 526
530: 164(float) SpecConstantOp 115 526
526(sf16): 28(float) SpecConstant 12288
527(sf): 164(float) SpecConstant 1048576000
528(sd): 172(float) SpecConstant 0 1071644672
529: 164(float) SpecConstantOp 115 526(sf16)
530: 164(float) SpecConstantOp 115 526(sf16)
531: 172(float) SpecConstantOp 115 530
532: 28(float) SpecConstantOp 115 527
533: 28(float) SpecConstantOp 115 528
532: 28(float) SpecConstantOp 115 527(sf)
533: 28(float) SpecConstantOp 115 528(sd)
4(main): 2 Function None 3
5: Label
Return