blob: 2a4b9dbaa57236fd5cae1e6b0d1905ac675506dc [file] [log] [blame]
spv.nv.lss-allops.rchit
// Module Version 10400
// Generated by (magic number): 8000b
// Id's are bound by 73
Capability RayQueryKHR
Capability RayTracingKHR
Capability ShaderInvocationReorderNV
Capability RayTracingSpheresGeometryNV
Capability RayTracingLinearSweptSpheresGeometryNV
Extension "SPV_KHR_ray_query"
Extension "SPV_KHR_ray_tracing"
Extension "SPV_NV_linear_swept_spheres"
Extension "SPV_NV_shader_invocation_reorder"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint ClosestHitKHR 4 "main" 12 35 57 60 63 66 69 71
Source GLSL 460
SourceExtension "GL_EXT_ray_query"
SourceExtension "GL_EXT_ray_tracing"
SourceExtension "GL_NV_linear_swept_spheres"
SourceExtension "GL_NV_shader_invocation_reorder"
Name 4 "main"
Name 9 "pos"
Name 12 "hObj"
Name 15 "rad"
Name 21 "lss_pos"
Name 25 "lss_rad"
Name 29 "isSphereHit"
Name 31 "isLSSHit"
Name 35 "rq"
Name 49 "hitVal"
Name 57 "gl_HitSpherePositionNV"
Name 60 "gl_HitSphereRadiusNV"
Name 63 "gl_HitLSSPositionsNV"
Name 66 "gl_HitLSSRadiiNV"
Name 69 "gl_HitIsSphereNV"
Name 71 "gl_HitIsLSSNV"
Decorate 57(gl_HitSpherePositionNV) BuiltIn HitSpherePositionNV
Decorate 60(gl_HitSphereRadiusNV) BuiltIn HitSphereRadiusNV
Decorate 63(gl_HitLSSPositionsNV) BuiltIn HitLSSPositionsNV
Decorate 66(gl_HitLSSRadiiNV) BuiltIn HitLLSSRadiiNV
Decorate 69(gl_HitIsSphereNV) BuiltIn HitIsSphereNV
Decorate 71(gl_HitIsLSSNV) BuiltIn HitIsLSSNV
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 3
8: TypePointer Function 7(fvec3)
10: TypeHitObjectNV
11: TypePointer Private 10
12(hObj): 11(ptr) Variable Private
14: TypePointer Function 6(float)
17: TypeInt 32 0
18: 17(int) Constant 2
19: TypeArray 7(fvec3) 18
20: TypePointer Function 19
23: TypeArray 6(float) 18
24: TypePointer Function 23
27: TypeBool
28: TypePointer Function 27(bool)
33: TypeRayQueryKHR
34: TypePointer Private 33
35(rq): 34(ptr) Variable Private
36: 27(bool) ConstantTrue
37: TypeInt 32 1
38: 37(int) Constant 1
40: 27(bool) ConstantFalse
41: 37(int) Constant 0
56: TypePointer Input 7(fvec3)
57(gl_HitSpherePositionNV): 56(ptr) Variable Input
59: TypePointer Input 6(float)
60(gl_HitSphereRadiusNV): 59(ptr) Variable Input
62: TypePointer Input 19
63(gl_HitLSSPositionsNV): 62(ptr) Variable Input
65: TypePointer Input 23
66(gl_HitLSSRadiiNV): 65(ptr) Variable Input
68: TypePointer Input 27(bool)
69(gl_HitIsSphereNV): 68(ptr) Variable Input
71(gl_HitIsLSSNV): 68(ptr) Variable Input
4(main): 2 Function None 3
5: Label
9(pos): 8(ptr) Variable Function
15(rad): 14(ptr) Variable Function
21(lss_pos): 20(ptr) Variable Function
25(lss_rad): 24(ptr) Variable Function
29(isSphereHit): 28(ptr) Variable Function
31(isLSSHit): 28(ptr) Variable Function
49(hitVal): 14(ptr) Variable Function
13: 7(fvec3) HitObjectGetSpherePositionNV 12(hObj)
Store 9(pos) 13
16: 6(float) HitObjectGetSphereRadiusNV 12(hObj)
Store 15(rad) 16
22: 19 HitObjectGetLSSPositionsNV 12(hObj)
Store 21(lss_pos) 22
26: 23 HitObjectGetLSSRadiiNV 12(hObj)
Store 25(lss_rad) 26
30: 27(bool) HitObjectIsSphereHitNV 12(hObj)
Store 29(isSphereHit) 30
32: 27(bool) HitObjectIsLSSHitNV 12(hObj)
Store 31(isLSSHit) 32
39: 7(fvec3) RayQueryGetIntersectionSpherePositionNV 35(rq) 38
Store 9(pos) 39
42: 7(fvec3) RayQueryGetIntersectionSpherePositionNV 35(rq) 41
Store 9(pos) 42
43: 6(float) RayQueryGetIntersectionSphereRadiusNV 35(rq) 38
Store 15(rad) 43
44: 6(float) RayQueryGetIntersectionSphereRadiusNV 35(rq) 41
Store 15(rad) 44
45: 19 RayQueryGetIntersectionLSSPositionsNV 35(rq) 38
Store 21(lss_pos) 45
46: 19 RayQueryGetIntersectionLSSPositionsNV 35(rq) 41
Store 21(lss_pos) 46
47: 23 RayQueryGetIntersectionLSSRadiiNV 35(rq) 38
Store 25(lss_rad) 47
48: 23 RayQueryGetIntersectionLSSRadiiNV 35(rq) 41
Store 25(lss_rad) 48
50: 6(float) RayQueryGetIntersectionLSSHitValueNV 35(rq) 38
Store 49(hitVal) 50
51: 6(float) RayQueryGetIntersectionLSSHitValueNV 35(rq) 41
Store 49(hitVal) 51
52: 27(bool) RayQueryIsSphereHitNV 35(rq) 38
Store 29(isSphereHit) 52
53: 27(bool) RayQueryIsSphereHitNV 35(rq) 41
Store 29(isSphereHit) 53
54: 27(bool) RayQueryIsLSSHitNV 35(rq) 38
Store 31(isLSSHit) 54
55: 27(bool) RayQueryIsLSSHitNV 35(rq) 41
Store 31(isLSSHit) 55
58: 7(fvec3) Load 57(gl_HitSpherePositionNV)
Store 9(pos) 58
61: 6(float) Load 60(gl_HitSphereRadiusNV)
Store 15(rad) 61
64: 19 Load 63(gl_HitLSSPositionsNV)
Store 21(lss_pos) 64
67: 23 Load 66(gl_HitLSSRadiiNV)
Store 25(lss_rad) 67
70: 27(bool) Load 69(gl_HitIsSphereNV)
Store 29(isSphereHit) 70
72: 27(bool) Load 71(gl_HitIsLSSNV)
Store 31(isLSSHit) 72
Return
FunctionEnd