yum-mirror/glslang

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

Lorenzo Dal ColSPV: emit opacity-micromap capability only when the flag is used77126ed3

main
2.4 KiB49 linesraw
1rayQuery-opacityMicromap.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 26
5
6                              Capability Shader
7                              Capability RayQueryKHR
8                              Capability RayTracingOpacityMicromapEXT
9                              Extension  "SPV_EXT_opacity_micromap"
10                              Extension  "SPV_KHR_ray_query"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint GLCompute 4  "main"
14                              ExecutionMode 4 LocalSize 1 1 1
15                              Source GLSL 460
16                              SourceExtension  "GL_EXT_opacity_micromap"
17                              SourceExtension  "GL_EXT_ray_query"
18                              Name 4  "main"
19                              Name 8  "rq"
20                              Name 11  "topLevelAS"
21                              Decorate 11(topLevelAS) Binding 0
22                              Decorate 11(topLevelAS) DescriptorSet 0
23               2:             TypeVoid
24               3:             TypeFunction 2
25               6:             TypeRayQueryKHR
26               7:             TypePointer Private 6
27           8(rq):      7(ptr) Variable Private
28               9:             TypeAccelerationStructureKHR
29              10:             TypePointer UniformConstant 9
30  11(topLevelAS):     10(ptr) Variable UniformConstant
31              13:             TypeInt 32 0
32              14:     13(int) Constant 1024
33              15:     13(int) Constant 255
34              16:             TypeFloat 32
35              17:             TypeVector 16(float) 3
36              18:   16(float) Constant 0
37              19:   17(fvec3) ConstantComposite 18 18 18
38              20:   16(float) Constant 1036831949
39              21:   16(float) Constant 1065353216
40              22:   17(fvec3) ConstantComposite 18 18 21
41              23:   16(float) Constant 1120403456
42              24:             TypeBool
43         4(main):           2 Function None 3
44               5:             Label
45              12:           9 Load 11(topLevelAS)
46                              RayQueryInitializeKHR 8(rq) 12 14 15 19 20 22 23
47              25:    24(bool) RayQueryProceedKHR 8(rq)
48                              Return
49                              FunctionEnd