pass-by-reference updates
This commit is contained in:
parent
2df8c71258
commit
7d37a68ad7
10 changed files with 985 additions and 1007 deletions
|
|
@ -1,11 +1,13 @@
|
|||
rayQuery-array-2d-dynamic.rgen
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80008
|
||||
// Id's are bound by 128
|
||||
// Id's are bound by 124
|
||||
|
||||
Capability VariablePointers
|
||||
Capability RayQueryProvisionalKHR
|
||||
Capability RayTracingNV
|
||||
Extension "SPV_KHR_ray_query"
|
||||
Extension "SPV_KHR_variable_pointers"
|
||||
Extension "SPV_NV_ray_tracing"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
|
|
@ -37,11 +39,9 @@ rayQuery-array-2d-dynamic.rgen
|
|||
MemberName 74(Rays) 0 "rays"
|
||||
Name 76 ""
|
||||
Name 91 "rayQuery"
|
||||
Name 93 "param"
|
||||
Name 96 "param"
|
||||
Name 120 "C"
|
||||
Name 122 "param"
|
||||
Name 125 "param"
|
||||
Name 94 "param"
|
||||
Name 118 "C"
|
||||
Name 121 "param"
|
||||
Decorate 23(gl_LaunchIDNV) BuiltIn LaunchIdKHR
|
||||
Decorate 28(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR
|
||||
Decorate 50(rtas) DescriptorSet 0
|
||||
|
|
@ -60,7 +60,7 @@ rayQuery-array-2d-dynamic.rgen
|
|||
6: TypeInt 32 0
|
||||
7: TypeFunction 6(int)
|
||||
10: TypeRayQueryProvisionalKHR
|
||||
11: TypePointer Function 10
|
||||
11: TypePointer Workgroup 10
|
||||
12: TypeFloat 32
|
||||
13: TypeVector 12(float) 3
|
||||
14(Ray): TypeStruct 13(fvec3) 12(float) 13(fvec3) 12(float)
|
||||
|
|
@ -93,19 +93,17 @@ rayQuery-array-2d-dynamic.rgen
|
|||
76: 75(ptr) Variable Uniform
|
||||
78: TypePointer Uniform 72(Ray)
|
||||
89: TypeArray 10 24
|
||||
90: TypePointer Function 89
|
||||
110: 6(int) Constant 32
|
||||
119: TypePointer Private 53(int)
|
||||
120(C): 119(ptr) Variable Private
|
||||
90: TypePointer Workgroup 89
|
||||
91(rayQuery): 90(ptr) Variable Workgroup
|
||||
108: 6(int) Constant 32
|
||||
117: TypePointer Private 53(int)
|
||||
118(C): 117(ptr) Variable Private
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
69(index): 68(ptr) Variable Function
|
||||
71(ray): 15(ptr) Variable Function
|
||||
91(rayQuery): 90(ptr) Variable Function
|
||||
93(param): 11(ptr) Variable Function
|
||||
96(param): 15(ptr) Variable Function
|
||||
122(param): 11(ptr) Variable Function
|
||||
125(param): 15(ptr) Variable Function
|
||||
94(param): 15(ptr) Variable Function
|
||||
121(param): 15(ptr) Variable Function
|
||||
70: 6(int) FunctionCall 8(launchIndex()
|
||||
Store 69(index) 70
|
||||
77: 6(int) Load 69(index)
|
||||
|
|
@ -124,42 +122,38 @@ rayQuery-array-2d-dynamic.rgen
|
|||
88: 59(ptr) AccessChain 71(ray) 65
|
||||
Store 88 87
|
||||
92: 6(int) Load 69(index)
|
||||
94: 11(ptr) AccessChain 91(rayQuery) 54
|
||||
95: 10 Load 94
|
||||
Store 93(param) 95
|
||||
97: 78(ptr) AccessChain 76 54 92
|
||||
98: 72(Ray) Load 97
|
||||
99: 13(fvec3) CompositeExtract 98 0
|
||||
100: 55(ptr) AccessChain 96(param) 54
|
||||
93: 11(ptr) AccessChain 91(rayQuery) 54
|
||||
95: 78(ptr) AccessChain 76 54 92
|
||||
96: 72(Ray) Load 95
|
||||
97: 13(fvec3) CompositeExtract 96 0
|
||||
98: 55(ptr) AccessChain 94(param) 54
|
||||
Store 98 97
|
||||
99: 12(float) CompositeExtract 96 1
|
||||
100: 59(ptr) AccessChain 94(param) 58
|
||||
Store 100 99
|
||||
101: 12(float) CompositeExtract 98 1
|
||||
102: 59(ptr) AccessChain 96(param) 58
|
||||
101: 13(fvec3) CompositeExtract 96 2
|
||||
102: 55(ptr) AccessChain 94(param) 62
|
||||
Store 102 101
|
||||
103: 13(fvec3) CompositeExtract 98 2
|
||||
104: 55(ptr) AccessChain 96(param) 62
|
||||
103: 12(float) CompositeExtract 96 3
|
||||
104: 59(ptr) AccessChain 94(param) 65
|
||||
Store 104 103
|
||||
105: 12(float) CompositeExtract 98 3
|
||||
106: 59(ptr) AccessChain 96(param) 65
|
||||
Store 106 105
|
||||
107: 2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 93(param) 96(param)
|
||||
108: 11(ptr) AccessChain 91(rayQuery) 58
|
||||
109: 48 Load 50(rtas)
|
||||
111: 55(ptr) AccessChain 71(ray) 54
|
||||
112: 13(fvec3) Load 111
|
||||
113: 59(ptr) AccessChain 71(ray) 58
|
||||
114: 12(float) Load 113
|
||||
115: 55(ptr) AccessChain 71(ray) 62
|
||||
116: 13(fvec3) Load 115
|
||||
117: 59(ptr) AccessChain 71(ray) 65
|
||||
118: 12(float) Load 117
|
||||
RayQueryInitializeKHR 108 109 33 110 112 114 116 118
|
||||
121: 53(int) Load 120(C)
|
||||
123: 11(ptr) AccessChain 91(rayQuery) 121
|
||||
124: 10 Load 123
|
||||
Store 122(param) 124
|
||||
126: 14(Ray) Load 71(ray)
|
||||
Store 125(param) 126
|
||||
127: 2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 122(param) 125(param)
|
||||
105: 2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 93 94(param)
|
||||
106: 11(ptr) AccessChain 91(rayQuery) 58
|
||||
107: 48 Load 50(rtas)
|
||||
109: 55(ptr) AccessChain 71(ray) 54
|
||||
110: 13(fvec3) Load 109
|
||||
111: 59(ptr) AccessChain 71(ray) 58
|
||||
112: 12(float) Load 111
|
||||
113: 55(ptr) AccessChain 71(ray) 62
|
||||
114: 13(fvec3) Load 113
|
||||
115: 59(ptr) AccessChain 71(ray) 65
|
||||
116: 12(float) Load 115
|
||||
RayQueryInitializeKHR 106 107 33 108 110 112 114 116
|
||||
119: 53(int) Load 118(C)
|
||||
120: 11(ptr) AccessChain 91(rayQuery) 119
|
||||
122: 14(Ray) Load 71(ray)
|
||||
Store 121(param) 122
|
||||
123: 2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 120 121(param)
|
||||
Return
|
||||
FunctionEnd
|
||||
8(launchIndex(): 6(int) Function None 7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue