yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Guang-035Add groundwork for GLSL_EXT_structured_descriptor_heap in glslang799ea066

main
4.5 KiB87 linesraw
1spv.structuredDescriptorHeap.AccelerationStructure.comp
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 47
5
6                              Capability Shader
7                              Capability Int8
8                              Capability RayQueryKHR
9                              Capability UntypedPointersKHR
10                              Capability DescriptorHeapEXT
11                              Extension  "SPV_EXT_descriptor_heap"
12                              Extension  "SPV_KHR_ray_query"
13                              Extension  "SPV_KHR_untyped_pointers"
14               1:             ExtInstImport  "GLSL.std.450"
15                              MemoryModel Logical GLSL450
16                              EntryPoint GLCompute 4  "main" 10 8 35
17                              ExecutionMode 4 LocalSize 1 1 1
18                              Source GLSL 460
19                              SourceExtension  "GL_EXT_descriptor_heap"
20                              SourceExtension  "GL_EXT_ray_query"
21                              SourceExtension  "GL_EXT_structured_descriptor_heap"
22                              Name 4  "main"
23                              Name 8  "rayQuery"
24                              Name 10  "resource_heap"
25                              Name 14  "RayHeap"
26                              Name 33  "Output"
27                              MemberName 33(Output) 0  "values"
28                              Name 35  "outputBuffer"
29                              Decorate 10(resource_heap) BuiltIn ResourceHeapEXT
30                              MemberDecorateIdEXT 14(RayHeap) 0 OffsetIdEXT 13
31                              Decorate 20 ArrayStride 1
32                              Decorate 32 ArrayStride 4
33                              Decorate 33(Output) Block
34                              MemberDecorate 33(Output) 0 Offset 0
35                              Decorate 35(outputBuffer) Binding 0
36                              Decorate 35(outputBuffer) DescriptorSet 0
37                              Decorate 46 BuiltIn WorkgroupSize
38               2:             TypeVoid
39               3:             TypeFunction 2
40               6:             TypeRayQueryKHR
41               7:             TypePointer Private 6
42     8(rayQuery):      7(ptr) Variable Private
43               9:             TypeUntypedPointerKHR UniformConstant
4410(resource_heap):      9(ptr) UntypedVariableKHR UniformConstant
45              11:             TypeAccelerationStructureKHR
46              12:             TypeInt 32 0
47              13:     12(int) Constant 0
48     14(RayHeap):             TypeStruct 11
49              15:     12(int) Constant 4096
50              16:             TypeInt 32 1
51              17:     16(int) Constant 0
52              19:             TypeInt 8 0
53              20:             TypeRuntimeArray 19(int8_t)
54              23:     12(int) Constant 255
55              24:             TypeFloat 32
56              25:             TypeVector 24(float) 3
57              26:   24(float) Constant 0
58              27:   25(fvec3) ConstantComposite 26 26 26
59              28:   24(float) Constant 1065353216
60              29:   25(fvec3) ConstantComposite 28 26 26
61              30:   24(float) Constant 1148846080
62              31:     12(int) Constant 2
63              32:             TypeArray 12(int) 31
64      33(Output):             TypeStruct 32
65              34:             TypePointer StorageBuffer 33(Output)
6635(outputBuffer):     34(ptr) Variable StorageBuffer
67              36:             TypeBool
68              38:     12(int) Constant 1
69              40:             TypePointer StorageBuffer 12(int)
70              42:     16(int) Constant 1
71              45:             TypeVector 12(int) 3
72              46:   45(ivec3) ConstantComposite 38 38 38
73         4(main):           2 Function None 3
74               5:             Label
75              18:      9(ptr) UntypedAccessChainKHR 20 10(resource_heap) 15
76              21:      9(ptr) UntypedAccessChainKHR 14(RayHeap) 18 17
77              22:          11 Load 21
78                              RayQueryInitializeKHR 8(rayQuery) 22 13 23 27 26 29 30
79              37:    36(bool) RayQueryProceedKHR 8(rayQuery)
80              39:     12(int) Select 37 38 13
81              41:     40(ptr) AccessChain 35(outputBuffer) 17 17
82                              Store 41 39
83              43:     12(int) RayQueryGetRayFlagsKHR 8(rayQuery)
84              44:     40(ptr) AccessChain 35(outputBuffer) 17 42
85                              Store 44 43
86                              Return
87                              FunctionEnd