blob: 2bdea6e334af9d873ba78c961a9afda4fee66c95 [file] [edit]
spv.structuredDescriptorHeap.AccelerationStructure.comp
// Module Version 10400
// Generated by (magic number): 8000b
// Id's are bound by 47
Capability Shader
Capability Int8
Capability RayQueryKHR
Capability UntypedPointersKHR
Capability DescriptorHeapEXT
Extension "SPV_EXT_descriptor_heap"
Extension "SPV_KHR_ray_query"
Extension "SPV_KHR_untyped_pointers"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "main" 10 8 35
ExecutionMode 4 LocalSize 1 1 1
Source GLSL 460
SourceExtension "GL_EXT_descriptor_heap"
SourceExtension "GL_EXT_ray_query"
SourceExtension "GL_EXT_structured_descriptor_heap"
Name 4 "main"
Name 8 "rayQuery"
Name 10 "resource_heap"
Name 14 "RayHeap"
Name 33 "Output"
MemberName 33(Output) 0 "values"
Name 35 "outputBuffer"
Decorate 10(resource_heap) BuiltIn ResourceHeapEXT
MemberDecorateIdEXT 14(RayHeap) 0 OffsetIdEXT 13
Decorate 20 ArrayStride 1
Decorate 32 ArrayStride 4
Decorate 33(Output) Block
MemberDecorate 33(Output) 0 Offset 0
Decorate 35(outputBuffer) Binding 0
Decorate 35(outputBuffer) DescriptorSet 0
Decorate 46 BuiltIn WorkgroupSize
2: TypeVoid
3: TypeFunction 2
6: TypeRayQueryKHR
7: TypePointer Private 6
8(rayQuery): 7(ptr) Variable Private
9: TypeUntypedPointerKHR UniformConstant
10(resource_heap): 9(ptr) UntypedVariableKHR UniformConstant
11: TypeAccelerationStructureKHR
12: TypeInt 32 0
13: 12(int) Constant 0
14(RayHeap): TypeStruct 11
15: 12(int) Constant 4096
16: TypeInt 32 1
17: 16(int) Constant 0
19: TypeInt 8 0
20: TypeRuntimeArray 19(int8_t)
23: 12(int) Constant 255
24: TypeFloat 32
25: TypeVector 24(float) 3
26: 24(float) Constant 0
27: 25(fvec3) ConstantComposite 26 26 26
28: 24(float) Constant 1065353216
29: 25(fvec3) ConstantComposite 28 26 26
30: 24(float) Constant 1148846080
31: 12(int) Constant 2
32: TypeArray 12(int) 31
33(Output): TypeStruct 32
34: TypePointer StorageBuffer 33(Output)
35(outputBuffer): 34(ptr) Variable StorageBuffer
36: TypeBool
38: 12(int) Constant 1
40: TypePointer StorageBuffer 12(int)
42: 16(int) Constant 1
45: TypeVector 12(int) 3
46: 45(ivec3) ConstantComposite 38 38 38
4(main): 2 Function None 3
5: Label
18: 9(ptr) UntypedAccessChainKHR 20 10(resource_heap) 15
21: 9(ptr) UntypedAccessChainKHR 14(RayHeap) 18 17
22: 11 Load 21
RayQueryInitializeKHR 8(rayQuery) 22 13 23 27 26 29 30
37: 36(bool) RayQueryProceedKHR 8(rayQuery)
39: 12(int) Select 37 38 13
41: 40(ptr) AccessChain 35(outputBuffer) 17 17
Store 41 39
43: 12(int) RayQueryGetRayFlagsKHR 8(rayQuery)
44: 40(ptr) AccessChain 35(outputBuffer) 17 42
Store 44 43
Return
FunctionEnd