spv::Builder::Loop constructor inits all members.
After construction, the Loop is effectively const. This perturbs the IDs in SPIR-V tests because the body block is created before generating any of the loop code, rather than only when the body is first referenced.
This commit is contained in:
parent
222457054e
commit
3e6a33cedf
16 changed files with 458 additions and 453 deletions
|
|
@ -82,7 +82,7 @@ Linked fragment stage:
|
|||
47: TypePointer Function 46
|
||||
51: TypePointer Function 7(int)
|
||||
68: 7(int) Constant 5
|
||||
78: 7(int) Constant 16
|
||||
79: 7(int) Constant 16
|
||||
83: 8(float) Constant 0
|
||||
87(condition): 21(ptr) Variable UniformConstant
|
||||
93: 7(int) Constant 3
|
||||
|
|
@ -160,11 +160,11 @@ Linked fragment stage:
|
|||
Store 74(i) 17
|
||||
Branch 75
|
||||
75: Label
|
||||
77: 7(int) Load 74(i)
|
||||
79: 24(bool) SLessThan 77 78
|
||||
78: 7(int) Load 74(i)
|
||||
80: 24(bool) SLessThan 78 79
|
||||
LoopMerge 76 None
|
||||
BranchConditional 79 80 76
|
||||
80: Label
|
||||
BranchConditional 80 77 76
|
||||
77: Label
|
||||
82: 7(int) Load 74(i)
|
||||
84: 31(ptr) AccessChain 81(a) 82
|
||||
Store 84 83
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue