GL_EXT_ray_tracing_position_fetch
This commit is contained in:
committed by
arcady-lunarg
parent
d6e9d3bb4e
commit
9d8c7b75c9
@@ -1,12 +1,14 @@
|
||||
rayQuery-allOps.comp
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 258
|
||||
// Id's are bound by 275
|
||||
|
||||
Capability Shader
|
||||
Capability RayQueryKHR
|
||||
Capability RayTraversalPrimitiveCullingKHR
|
||||
Capability RayQueryPositionFetchKHR
|
||||
Extension "SPV_KHR_ray_query"
|
||||
Extension "SPV_KHR_ray_tracing_position_fetch"
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint GLCompute 4 "main"
|
||||
@@ -14,6 +16,7 @@ rayQuery-allOps.comp
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_EXT_ray_flags_primitive_culling"
|
||||
SourceExtension "GL_EXT_ray_query"
|
||||
SourceExtension "GL_EXT_ray_tracing_position_fetch"
|
||||
Name 4 "main"
|
||||
Name 6 "doSomething("
|
||||
Name 10 "Ray"
|
||||
@@ -35,16 +38,17 @@ rayQuery-allOps.comp
|
||||
Name 83 "_mat3x4"
|
||||
Name 143 "t"
|
||||
Name 156 "committedStatus"
|
||||
Name 241 "o"
|
||||
Name 243 "d"
|
||||
Name 253 "Ray"
|
||||
MemberName 253(Ray) 0 "pos"
|
||||
MemberName 253(Ray) 1 "tmin"
|
||||
MemberName 253(Ray) 2 "dir"
|
||||
MemberName 253(Ray) 3 "tmax"
|
||||
Name 255 "Rays"
|
||||
MemberName 255(Rays) 0 "rays"
|
||||
Name 257 ""
|
||||
Name 184 "positions"
|
||||
Name 258 "o"
|
||||
Name 260 "d"
|
||||
Name 270 "Ray"
|
||||
MemberName 270(Ray) 0 "pos"
|
||||
MemberName 270(Ray) 1 "tmin"
|
||||
MemberName 270(Ray) 2 "dir"
|
||||
MemberName 270(Ray) 3 "tmax"
|
||||
Name 272 "Rays"
|
||||
MemberName 272(Rays) 0 "rays"
|
||||
Name 274 ""
|
||||
MemberDecorate 15(Log) 0 Offset 0
|
||||
MemberDecorate 15(Log) 1 Offset 4
|
||||
Decorate 15(Log) BufferBlock
|
||||
@@ -52,15 +56,15 @@ rayQuery-allOps.comp
|
||||
Decorate 17 Binding 0
|
||||
Decorate 50(rtas) DescriptorSet 0
|
||||
Decorate 50(rtas) Binding 1
|
||||
MemberDecorate 253(Ray) 0 Offset 0
|
||||
MemberDecorate 253(Ray) 1 Offset 12
|
||||
MemberDecorate 253(Ray) 2 Offset 16
|
||||
MemberDecorate 253(Ray) 3 Offset 28
|
||||
Decorate 254 ArrayStride 32
|
||||
MemberDecorate 255(Rays) 0 Offset 0
|
||||
Decorate 255(Rays) BufferBlock
|
||||
Decorate 257 DescriptorSet 0
|
||||
Decorate 257 Binding 2
|
||||
MemberDecorate 270(Ray) 0 Offset 0
|
||||
MemberDecorate 270(Ray) 1 Offset 12
|
||||
MemberDecorate 270(Ray) 2 Offset 16
|
||||
MemberDecorate 270(Ray) 3 Offset 28
|
||||
Decorate 271 ArrayStride 32
|
||||
MemberDecorate 272(Rays) 0 Offset 0
|
||||
Decorate 272(Rays) BufferBlock
|
||||
Decorate 274 DescriptorSet 0
|
||||
Decorate 274 Binding 2
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
8: TypeFloat 32
|
||||
@@ -105,13 +109,16 @@ rayQuery-allOps.comp
|
||||
91: TypeVector 8(float) 2
|
||||
144: 8(float) Constant 1056964608
|
||||
175: 14(int) Constant 1
|
||||
198: 14(int) Constant 2
|
||||
231: 14(int) Constant 256
|
||||
253(Ray): TypeStruct 9(fvec3) 8(float) 9(fvec3) 8(float)
|
||||
254: TypeRuntimeArray 253(Ray)
|
||||
255(Rays): TypeStruct 254
|
||||
256: TypePointer Uniform 255(Rays)
|
||||
257: 256(ptr) Variable Uniform
|
||||
181: 14(int) Constant 3
|
||||
182: TypeArray 9(fvec3) 181
|
||||
183: TypePointer Function 182
|
||||
215: 14(int) Constant 2
|
||||
248: 14(int) Constant 256
|
||||
270(Ray): TypeStruct 9(fvec3) 8(float) 9(fvec3) 8(float)
|
||||
271: TypeRuntimeArray 270(Ray)
|
||||
272(Rays): TypeStruct 271
|
||||
273: TypePointer Uniform 272(Rays)
|
||||
274: 273(ptr) Variable Uniform
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
43(ray): 25(ptr) Variable Function
|
||||
@@ -120,8 +127,9 @@ rayQuery-allOps.comp
|
||||
83(_mat3x4): 82(ptr) Variable Function
|
||||
143(t): 35(ptr) Variable Function
|
||||
156(committedStatus): 68(ptr) Variable Function
|
||||
241(o): 29(ptr) Variable Function
|
||||
243(d): 29(ptr) Variable Function
|
||||
184(positions): 183(ptr) Variable Function
|
||||
258(o): 29(ptr) Variable Function
|
||||
260(d): 29(ptr) Variable Function
|
||||
44: 10(Ray) FunctionCall 12(makeRayDesc()
|
||||
Store 43(ray) 44
|
||||
51: 48 Load 50(rtas)
|
||||
@@ -303,110 +311,130 @@ rayQuery-allOps.comp
|
||||
180: 2 FunctionCall 6(doSomething()
|
||||
Branch 179
|
||||
179: Label
|
||||
Branch 162
|
||||
161: Label
|
||||
182: 18(int) RayQueryGetIntersectionGeometryIndexKHR 47(rayQuery) 23
|
||||
183: 66(bool) SGreaterThan 182 19
|
||||
SelectionMerge 185 None
|
||||
BranchConditional 183 184 185
|
||||
184: Label
|
||||
186: 2 FunctionCall 6(doSomething()
|
||||
Branch 185
|
||||
185: Label
|
||||
187: 18(int) RayQueryGetIntersectionInstanceIdKHR 47(rayQuery) 23
|
||||
188: 66(bool) SGreaterThan 187 19
|
||||
185: 182 RayQueryGetIntersectionTriangleVertexPositionsKHR 47(rayQuery) 23
|
||||
Store 184(positions) 185
|
||||
186: 35(ptr) AccessChain 184(positions) 19 20
|
||||
187: 8(float) Load 186
|
||||
188: 66(bool) FOrdLessThan 187 27
|
||||
SelectionMerge 190 None
|
||||
BranchConditional 188 189 190
|
||||
189: Label
|
||||
191: 2 FunctionCall 6(doSomething()
|
||||
191: 35(ptr) AccessChain 184(positions) 31 175
|
||||
192: 8(float) Load 191
|
||||
193: 66(bool) FOrdGreaterThan 192 27
|
||||
Branch 190
|
||||
190: Label
|
||||
192: 18(int) RayQueryGetIntersectionInstanceCustomIndexKHR 47(rayQuery) 23
|
||||
193: 66(bool) SGreaterThan 192 19
|
||||
SelectionMerge 195 None
|
||||
BranchConditional 193 194 195
|
||||
194: Label
|
||||
196: 2 FunctionCall 6(doSomething()
|
||||
Branch 195
|
||||
195: Label
|
||||
197: 9(fvec3) RayQueryGetIntersectionObjectRayDirectionKHR 47(rayQuery) 23
|
||||
199: 8(float) CompositeExtract 197 2
|
||||
200: 66(bool) FOrdGreaterThan 199 27
|
||||
194: 66(bool) Phi 188 179 193 189
|
||||
SelectionMerge 196 None
|
||||
BranchConditional 194 195 196
|
||||
195: Label
|
||||
197: 2 FunctionCall 6(doSomething()
|
||||
Branch 196
|
||||
196: Label
|
||||
Branch 162
|
||||
161: Label
|
||||
199: 18(int) RayQueryGetIntersectionGeometryIndexKHR 47(rayQuery) 23
|
||||
200: 66(bool) SGreaterThan 199 19
|
||||
SelectionMerge 202 None
|
||||
BranchConditional 200 201 202
|
||||
201: Label
|
||||
203: 2 FunctionCall 6(doSomething()
|
||||
Branch 202
|
||||
202: Label
|
||||
204: 9(fvec3) RayQueryGetIntersectionObjectRayOriginKHR 47(rayQuery) 23
|
||||
205: 8(float) CompositeExtract 204 0
|
||||
206: 66(bool) FOrdGreaterThan 205 27
|
||||
SelectionMerge 208 None
|
||||
BranchConditional 206 207 208
|
||||
207: Label
|
||||
209: 2 FunctionCall 6(doSomething()
|
||||
Branch 208
|
||||
208: Label
|
||||
210: 18(int) RayQueryGetIntersectionPrimitiveIndexKHR 47(rayQuery) 23
|
||||
211: 66(bool) SGreaterThan 210 19
|
||||
SelectionMerge 213 None
|
||||
BranchConditional 211 212 213
|
||||
212: Label
|
||||
214: 2 FunctionCall 6(doSomething()
|
||||
Branch 213
|
||||
213: Label
|
||||
215: 8(float) RayQueryGetIntersectionTKHR 47(rayQuery) 23
|
||||
216: 66(bool) FOrdGreaterThan 215 27
|
||||
SelectionMerge 218 None
|
||||
BranchConditional 216 217 218
|
||||
217: Label
|
||||
219: 2 FunctionCall 6(doSomething()
|
||||
Branch 218
|
||||
218: Label
|
||||
204: 18(int) RayQueryGetIntersectionInstanceIdKHR 47(rayQuery) 23
|
||||
205: 66(bool) SGreaterThan 204 19
|
||||
SelectionMerge 207 None
|
||||
BranchConditional 205 206 207
|
||||
206: Label
|
||||
208: 2 FunctionCall 6(doSomething()
|
||||
Branch 207
|
||||
207: Label
|
||||
209: 18(int) RayQueryGetIntersectionInstanceCustomIndexKHR 47(rayQuery) 23
|
||||
210: 66(bool) SGreaterThan 209 19
|
||||
SelectionMerge 212 None
|
||||
BranchConditional 210 211 212
|
||||
211: Label
|
||||
213: 2 FunctionCall 6(doSomething()
|
||||
Branch 212
|
||||
212: Label
|
||||
214: 9(fvec3) RayQueryGetIntersectionObjectRayDirectionKHR 47(rayQuery) 23
|
||||
216: 8(float) CompositeExtract 214 2
|
||||
217: 66(bool) FOrdGreaterThan 216 27
|
||||
SelectionMerge 219 None
|
||||
BranchConditional 217 218 219
|
||||
218: Label
|
||||
220: 2 FunctionCall 6(doSomething()
|
||||
Branch 219
|
||||
219: Label
|
||||
221: 9(fvec3) RayQueryGetIntersectionObjectRayOriginKHR 47(rayQuery) 23
|
||||
222: 8(float) CompositeExtract 221 0
|
||||
223: 66(bool) FOrdGreaterThan 222 27
|
||||
SelectionMerge 225 None
|
||||
BranchConditional 223 224 225
|
||||
224: Label
|
||||
226: 2 FunctionCall 6(doSomething()
|
||||
Branch 225
|
||||
225: Label
|
||||
227: 18(int) RayQueryGetIntersectionPrimitiveIndexKHR 47(rayQuery) 23
|
||||
228: 66(bool) SGreaterThan 227 19
|
||||
SelectionMerge 230 None
|
||||
BranchConditional 228 229 230
|
||||
229: Label
|
||||
231: 2 FunctionCall 6(doSomething()
|
||||
Branch 230
|
||||
230: Label
|
||||
232: 8(float) RayQueryGetIntersectionTKHR 47(rayQuery) 23
|
||||
233: 66(bool) FOrdGreaterThan 232 27
|
||||
SelectionMerge 235 None
|
||||
BranchConditional 233 234 235
|
||||
234: Label
|
||||
236: 2 FunctionCall 6(doSomething()
|
||||
Branch 235
|
||||
235: Label
|
||||
Branch 162
|
||||
162: Label
|
||||
222: 35(ptr) AccessChain 83(_mat3x4) 19 20
|
||||
223: 8(float) Load 222
|
||||
224: 35(ptr) AccessChain 78(_mat4x3) 19 20
|
||||
225: 8(float) Load 224
|
||||
226: 66(bool) FOrdEqual 223 225
|
||||
SelectionMerge 228 None
|
||||
BranchConditional 226 227 228
|
||||
227: Label
|
||||
229: 2 FunctionCall 6(doSomething()
|
||||
Branch 228
|
||||
228: Label
|
||||
230: 14(int) RayQueryGetRayFlagsKHR 47(rayQuery)
|
||||
232: 66(bool) UGreaterThan 230 231
|
||||
SelectionMerge 234 None
|
||||
BranchConditional 232 233 234
|
||||
233: Label
|
||||
235: 2 FunctionCall 6(doSomething()
|
||||
Branch 234
|
||||
234: Label
|
||||
236: 8(float) RayQueryGetRayTMinKHR 47(rayQuery)
|
||||
237: 66(bool) FOrdGreaterThan 236 27
|
||||
SelectionMerge 239 None
|
||||
BranchConditional 237 238 239
|
||||
238: Label
|
||||
240: 2 FunctionCall 6(doSomething()
|
||||
Branch 239
|
||||
239: Label
|
||||
242: 9(fvec3) RayQueryGetWorldRayOriginKHR 47(rayQuery)
|
||||
Store 241(o) 242
|
||||
244: 9(fvec3) RayQueryGetWorldRayDirectionKHR 47(rayQuery)
|
||||
Store 243(d) 244
|
||||
245: 35(ptr) AccessChain 241(o) 20
|
||||
246: 8(float) Load 245
|
||||
247: 35(ptr) AccessChain 243(d) 198
|
||||
248: 8(float) Load 247
|
||||
249: 66(bool) FOrdEqual 246 248
|
||||
239: 35(ptr) AccessChain 83(_mat3x4) 19 20
|
||||
240: 8(float) Load 239
|
||||
241: 35(ptr) AccessChain 78(_mat4x3) 19 20
|
||||
242: 8(float) Load 241
|
||||
243: 66(bool) FOrdEqual 240 242
|
||||
SelectionMerge 245 None
|
||||
BranchConditional 243 244 245
|
||||
244: Label
|
||||
246: 2 FunctionCall 6(doSomething()
|
||||
Branch 245
|
||||
245: Label
|
||||
247: 14(int) RayQueryGetRayFlagsKHR 47(rayQuery)
|
||||
249: 66(bool) UGreaterThan 247 248
|
||||
SelectionMerge 251 None
|
||||
BranchConditional 249 250 251
|
||||
250: Label
|
||||
252: 2 FunctionCall 6(doSomething()
|
||||
Branch 251
|
||||
251: Label
|
||||
253: 8(float) RayQueryGetRayTMinKHR 47(rayQuery)
|
||||
254: 66(bool) FOrdGreaterThan 253 27
|
||||
SelectionMerge 256 None
|
||||
BranchConditional 254 255 256
|
||||
255: Label
|
||||
257: 2 FunctionCall 6(doSomething()
|
||||
Branch 256
|
||||
256: Label
|
||||
259: 9(fvec3) RayQueryGetWorldRayOriginKHR 47(rayQuery)
|
||||
Store 258(o) 259
|
||||
261: 9(fvec3) RayQueryGetWorldRayDirectionKHR 47(rayQuery)
|
||||
Store 260(d) 261
|
||||
262: 35(ptr) AccessChain 258(o) 20
|
||||
263: 8(float) Load 262
|
||||
264: 35(ptr) AccessChain 260(d) 215
|
||||
265: 8(float) Load 264
|
||||
266: 66(bool) FOrdEqual 263 265
|
||||
SelectionMerge 268 None
|
||||
BranchConditional 266 267 268
|
||||
267: Label
|
||||
269: 2 FunctionCall 6(doSomething()
|
||||
Branch 268
|
||||
268: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
6(doSomething(): 2 Function None 3
|
||||
|
||||
Reference in New Issue
Block a user