yum-mirror/glslang

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

alelenvAdd support for GL_NV_cluster_acceleration_structure.39766a06

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