yum-mirror/glslang

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

alelenvAdd support for GL_NV_cluster_acceleration_structure.39766a06

main
2.9 KiB59 linesraw
1spv.nv.cluster-allops.frag
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 31
5
6                              Capability Shader
7                              Capability RayQueryKHR
8                              Capability RayTracingClusterAccelerationStructureNV
9                              Extension  "SPV_KHR_ray_query"
10                              Extension  "SPV_NV_cluster_acceleration_structure"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint Fragment 4  "main" 11 30
14                              ExecutionMode 4 OriginUpperLeft
15                              Source GLSL 460
16                              SourceExtension  "GL_EXT_ray_query"
17                              SourceExtension  "GL_NV_cluster_acceleration_structure"
18                              Name 4  "main"
19                              Name 8  "id_candidate"
20                              Name 11  "rq"
21                              Name 16  "id_committed"
22                              Name 21  "test"
23                              Name 30  "as"
24                              Decorate 30(as) Binding 1
25                              Decorate 30(as) DescriptorSet 0
26               2:             TypeVoid
27               3:             TypeFunction 2
28               6:             TypeInt 32 1
29               7:             TypePointer Function 6(int)
30               9:             TypeRayQueryKHR
31              10:             TypePointer Private 9
32          11(rq):     10(ptr) Variable Private
33              12:             TypeBool
34              13:    12(bool) ConstantFalse
35              14:      6(int) Constant 0
36              17:    12(bool) ConstantTrue
37              18:      6(int) Constant 1
38              20:             TypePointer Function 12(bool)
39              23:      6(int) Constant 4294967295
40              28:             TypeAccelerationStructureKHR
41              29:             TypePointer UniformConstant 28
42          30(as):     29(ptr) Variable UniformConstant
43         4(main):           2 Function None 3
44               5:             Label
45 8(id_candidate):      7(ptr) Variable Function
4616(id_committed):      7(ptr) Variable Function
47        21(test):     20(ptr) Variable Function
48              15:      6(int) RayQueryGetIntersectionClusterIdNV 11(rq) 14
49                              Store 8(id_candidate) 15
50              19:      6(int) RayQueryGetIntersectionClusterIdNV 11(rq) 18
51                              Store 16(id_committed) 19
52              22:      6(int) Load 8(id_candidate)
53              24:    12(bool) IEqual 22 23
54              25:      6(int) Load 16(id_committed)
55              26:    12(bool) IEqual 25 23
56              27:    12(bool) LogicalAnd 24 26
57                              Store 21(test) 27
58                              Return
59                              FunctionEnd