yum-mirror/glslang

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

alelenvAdd support for GL_NV_cluster_acceleration_structure.39766a06

main
3.4 KiB68 linesraw
1spv.nv.cluster-allops.rahit
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 35
5
6                              Capability RayQueryKHR
7                              Capability RayTracingKHR
8                              Capability RayTracingClusterAccelerationStructureNV
9                              Extension  "SPV_KHR_ray_query"
10                              Extension  "SPV_KHR_ray_tracing"
11                              Extension  "SPV_NV_cluster_acceleration_structure"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint AnyHitKHR 4  "main" 10 15 34
15                              Source GLSL 460
16                              SourceExtension  "GL_EXT_ray_query"
17                              SourceExtension  "GL_EXT_ray_tracing"
18                              SourceExtension  "GL_NV_cluster_acceleration_structure"
19                              Name 4  "main"
20                              Name 8  "clusterid"
21                              Name 10  "gl_ClusterIDNV"
22                              Name 12  "id_candidate"
23                              Name 15  "rq"
24                              Name 20  "id_committed"
25                              Name 25  "test"
26                              Name 34  "as"
27                              Decorate 10(gl_ClusterIDNV) BuiltIn ClusterIDNV
28                              Decorate 34(as) Binding 1
29                              Decorate 34(as) DescriptorSet 0
30               2:             TypeVoid
31               3:             TypeFunction 2
32               6:             TypeInt 32 1
33               7:             TypePointer Function 6(int)
34               9:             TypePointer Input 6(int)
3510(gl_ClusterIDNV):      9(ptr) Variable Input
36              13:             TypeRayQueryKHR
37              14:             TypePointer Private 13
38          15(rq):     14(ptr) Variable Private
39              16:             TypeBool
40              17:    16(bool) ConstantFalse
41              18:      6(int) Constant 0
42              21:    16(bool) ConstantTrue
43              22:      6(int) Constant 1
44              24:             TypePointer Function 16(bool)
45              27:      6(int) Constant 4294967295
46              32:             TypeAccelerationStructureKHR
47              33:             TypePointer UniformConstant 32
48          34(as):     33(ptr) Variable UniformConstant
49         4(main):           2 Function None 3
50               5:             Label
51    8(clusterid):      7(ptr) Variable Function
5212(id_candidate):      7(ptr) Variable Function
5320(id_committed):      7(ptr) Variable Function
54        25(test):     24(ptr) Variable Function
55              11:      6(int) Load 10(gl_ClusterIDNV)
56                              Store 8(clusterid) 11
57              19:      6(int) RayQueryGetIntersectionClusterIdNV 15(rq) 18
58                              Store 12(id_candidate) 19
59              23:      6(int) RayQueryGetIntersectionClusterIdNV 15(rq) 22
60                              Store 20(id_committed) 23
61              26:      6(int) Load 12(id_candidate)
62              28:    16(bool) IEqual 26 27
63              29:      6(int) Load 20(id_committed)
64              30:    16(bool) IEqual 29 27
65              31:    16(bool) LogicalAnd 28 30
66                              Store 25(test) 31
67                              Return
68                              FunctionEnd