yum-mirror/glslang

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

alelenvAdd support for GL_NV_cluster_acceleration_structure.39766a06

main
3.6 KiB71 linesraw
1spv.nv.cluster-allops.rgen
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 36
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 RayGenerationKHR 4  "main" 11 16 35
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  "id_candidate"
26                              Name 16  "rq"
27                              Name 21  "id_committed"
28                              Name 26  "test"
29                              Name 35  "as"
30                              Decorate 35(as) Binding 1
31                              Decorate 35(as) DescriptorSet 0
32               2:             TypeVoid
33               3:             TypeFunction 2
34               6:             TypeInt 32 1
35               7:             TypePointer Function 6(int)
36               9:             TypeHitObjectNV
37              10:             TypePointer Private 9
38      11(hitObj):     10(ptr) Variable Private
39              14:             TypeRayQueryKHR
40              15:             TypePointer Private 14
41          16(rq):     15(ptr) Variable Private
42              17:             TypeBool
43              18:    17(bool) ConstantFalse
44              19:      6(int) Constant 0
45              22:    17(bool) ConstantTrue
46              23:      6(int) Constant 1
47              25:             TypePointer Function 17(bool)
48              28:      6(int) Constant 4294967295
49              33:             TypeAccelerationStructureKHR
50              34:             TypePointer UniformConstant 33
51          35(as):     34(ptr) Variable UniformConstant
52         4(main):           2 Function None 3
53               5:             Label
54     8(hitObjId):      7(ptr) Variable Function
5513(id_candidate):      7(ptr) Variable Function
5621(id_committed):      7(ptr) Variable Function
57        26(test):     25(ptr) Variable Function
58              12:      6(int) HitObjectGetClusterIdNV 11(hitObj)
59                              Store 8(hitObjId) 12
60              20:      6(int) RayQueryGetIntersectionClusterIdNV 16(rq) 19
61                              Store 13(id_candidate) 20
62              24:      6(int) RayQueryGetIntersectionClusterIdNV 16(rq) 23
63                              Store 21(id_committed) 24
64              27:      6(int) Load 13(id_candidate)
65              29:    17(bool) IEqual 27 28
66              30:      6(int) Load 21(id_committed)
67              31:    17(bool) IEqual 30 28
68              32:    17(bool) LogicalAnd 29 31
69                              Store 26(test) 32
70                              Return
71                              FunctionEnd