217 lines
12 KiB
Plaintext
217 lines
12 KiB
Plaintext
spv.ext.AnyHitShader.rahit
|
|
// Module Version 10400
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 115
|
|
|
|
Capability GroupNonUniform
|
|
Capability RayTracingKHR
|
|
Capability RayTracingPositionFetchKHR
|
|
Capability RayCullMaskKHR
|
|
Extension "SPV_KHR_ray_cull_mask"
|
|
Extension "SPV_KHR_ray_tracing"
|
|
Extension "SPV_KHR_ray_tracing_position_fetch"
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint AnyHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 57 63 66 69 81 87 92 106
|
|
Source GLSL 460
|
|
SourceExtension "GL_EXT_ray_cull_mask"
|
|
SourceExtension "GL_EXT_ray_tracing"
|
|
SourceExtension "GL_EXT_ray_tracing_position_fetch"
|
|
SourceExtension "GL_KHR_shader_subgroup_basic"
|
|
Name 4 "main"
|
|
Name 9 "v0"
|
|
Name 11 "gl_LaunchIDEXT"
|
|
Name 13 "v1"
|
|
Name 14 "gl_LaunchSizeEXT"
|
|
Name 18 "v2"
|
|
Name 20 "gl_PrimitiveID"
|
|
Name 22 "v3"
|
|
Name 23 "gl_InstanceID"
|
|
Name 25 "v4"
|
|
Name 26 "gl_InstanceCustomIndexEXT"
|
|
Name 31 "v5"
|
|
Name 33 "gl_WorldRayOriginEXT"
|
|
Name 35 "v6"
|
|
Name 36 "gl_WorldRayDirectionEXT"
|
|
Name 38 "v7"
|
|
Name 39 "gl_ObjectRayOriginEXT"
|
|
Name 41 "v8"
|
|
Name 42 "gl_ObjectRayDirectionEXT"
|
|
Name 45 "v9"
|
|
Name 47 "gl_RayTminEXT"
|
|
Name 49 "v10"
|
|
Name 50 "gl_RayTmaxEXT"
|
|
Name 52 "v11"
|
|
Name 55 "v12"
|
|
Name 57 "gl_HitKindEXT"
|
|
Name 61 "v13"
|
|
Name 63 "gl_ObjectToWorldEXT"
|
|
Name 65 "v14"
|
|
Name 66 "gl_WorldToObjectEXT"
|
|
Name 68 "v15"
|
|
Name 69 "gl_GeometryIndexEXT"
|
|
Name 74 "v16"
|
|
Name 77 "v17"
|
|
Name 80 "v18"
|
|
Name 81 "gl_CullMaskEXT"
|
|
Name 83 "v19"
|
|
Name 87 "gl_HitTriangleVertexPositionsEXT"
|
|
Name 92 "incomingPayload"
|
|
Name 106 "gl_SubgroupSize"
|
|
Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
|
|
Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
|
|
Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
|
|
Decorate 23(gl_InstanceID) BuiltIn InstanceId
|
|
Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR
|
|
Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR
|
|
Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR
|
|
Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR
|
|
Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR
|
|
Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR
|
|
Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR
|
|
Decorate 57(gl_HitKindEXT) BuiltIn HitKindKHR
|
|
Decorate 63(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR
|
|
Decorate 66(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR
|
|
Decorate 69(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR
|
|
Decorate 81(gl_CullMaskEXT) BuiltIn CullMaskKHR
|
|
Decorate 87(gl_HitTriangleVertexPositionsEXT) BuiltIn HitTriangleVertexPositionsKHR
|
|
Decorate 106(gl_SubgroupSize) RelaxedPrecision
|
|
Decorate 106(gl_SubgroupSize) BuiltIn SubgroupSize
|
|
Decorate 107 RelaxedPrecision
|
|
Decorate 108 RelaxedPrecision
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 0
|
|
7: TypeVector 6(int) 3
|
|
8: TypePointer Function 7(ivec3)
|
|
10: TypePointer Input 7(ivec3)
|
|
11(gl_LaunchIDEXT): 10(ptr) Variable Input
|
|
14(gl_LaunchSizeEXT): 10(ptr) Variable Input
|
|
16: TypeInt 32 1
|
|
17: TypePointer Function 16(int)
|
|
19: TypePointer Input 16(int)
|
|
20(gl_PrimitiveID): 19(ptr) Variable Input
|
|
23(gl_InstanceID): 19(ptr) Variable Input
|
|
26(gl_InstanceCustomIndexEXT): 19(ptr) Variable Input
|
|
28: TypeFloat 32
|
|
29: TypeVector 28(float) 3
|
|
30: TypePointer Function 29(fvec3)
|
|
32: TypePointer Input 29(fvec3)
|
|
33(gl_WorldRayOriginEXT): 32(ptr) Variable Input
|
|
36(gl_WorldRayDirectionEXT): 32(ptr) Variable Input
|
|
39(gl_ObjectRayOriginEXT): 32(ptr) Variable Input
|
|
42(gl_ObjectRayDirectionEXT): 32(ptr) Variable Input
|
|
44: TypePointer Function 28(float)
|
|
46: TypePointer Input 28(float)
|
|
47(gl_RayTminEXT): 46(ptr) Variable Input
|
|
50(gl_RayTmaxEXT): 46(ptr) Variable Input
|
|
54: TypePointer Function 6(int)
|
|
56: TypePointer Input 6(int)
|
|
57(gl_HitKindEXT): 56(ptr) Variable Input
|
|
59: TypeMatrix 29(fvec3) 4
|
|
60: TypePointer Function 59
|
|
62: TypePointer Input 59
|
|
63(gl_ObjectToWorldEXT): 62(ptr) Variable Input
|
|
66(gl_WorldToObjectEXT): 62(ptr) Variable Input
|
|
69(gl_GeometryIndexEXT): 19(ptr) Variable Input
|
|
71: TypeVector 28(float) 4
|
|
72: TypeMatrix 71(fvec4) 3
|
|
73: TypePointer Function 72
|
|
81(gl_CullMaskEXT): 56(ptr) Variable Input
|
|
84: 6(int) Constant 3
|
|
85: TypeArray 29(fvec3) 84
|
|
86: TypePointer Input 85
|
|
87(gl_HitTriangleVertexPositionsEXT): 86(ptr) Variable Input
|
|
88: 16(int) Constant 0
|
|
91: TypePointer IncomingRayPayloadKHR 71(fvec4)
|
|
92(incomingPayload): 91(ptr) Variable IncomingRayPayloadKHR
|
|
93: 28(float) Constant 1056964608
|
|
94: 71(fvec4) ConstantComposite 93 93 93 93
|
|
96: 16(int) Constant 1
|
|
97: TypeBool
|
|
102: 6(int) Constant 0
|
|
106(gl_SubgroupSize): 56(ptr) Variable Input
|
|
109: TypePointer IncomingRayPayloadKHR 28(float)
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
9(v0): 8(ptr) Variable Function
|
|
13(v1): 8(ptr) Variable Function
|
|
18(v2): 17(ptr) Variable Function
|
|
22(v3): 17(ptr) Variable Function
|
|
25(v4): 17(ptr) Variable Function
|
|
31(v5): 30(ptr) Variable Function
|
|
35(v6): 30(ptr) Variable Function
|
|
38(v7): 30(ptr) Variable Function
|
|
41(v8): 30(ptr) Variable Function
|
|
45(v9): 44(ptr) Variable Function
|
|
49(v10): 44(ptr) Variable Function
|
|
52(v11): 44(ptr) Variable Function
|
|
55(v12): 54(ptr) Variable Function
|
|
61(v13): 60(ptr) Variable Function
|
|
65(v14): 60(ptr) Variable Function
|
|
68(v15): 17(ptr) Variable Function
|
|
74(v16): 73(ptr) Variable Function
|
|
77(v17): 73(ptr) Variable Function
|
|
80(v18): 54(ptr) Variable Function
|
|
83(v19): 30(ptr) Variable Function
|
|
12: 7(ivec3) Load 11(gl_LaunchIDEXT)
|
|
Store 9(v0) 12
|
|
15: 7(ivec3) Load 14(gl_LaunchSizeEXT)
|
|
Store 13(v1) 15
|
|
21: 16(int) Load 20(gl_PrimitiveID)
|
|
Store 18(v2) 21
|
|
24: 16(int) Load 23(gl_InstanceID)
|
|
Store 22(v3) 24
|
|
27: 16(int) Load 26(gl_InstanceCustomIndexEXT)
|
|
Store 25(v4) 27
|
|
34: 29(fvec3) Load 33(gl_WorldRayOriginEXT)
|
|
Store 31(v5) 34
|
|
37: 29(fvec3) Load 36(gl_WorldRayDirectionEXT)
|
|
Store 35(v6) 37
|
|
40: 29(fvec3) Load 39(gl_ObjectRayOriginEXT)
|
|
Store 38(v7) 40
|
|
43: 29(fvec3) Load 42(gl_ObjectRayDirectionEXT)
|
|
Store 41(v8) 43
|
|
48: 28(float) Load 47(gl_RayTminEXT)
|
|
Store 45(v9) 48
|
|
51: 28(float) Load 50(gl_RayTmaxEXT)
|
|
Store 49(v10) 51
|
|
53: 28(float) Load 50(gl_RayTmaxEXT)
|
|
Store 52(v11) 53
|
|
58: 6(int) Load 57(gl_HitKindEXT)
|
|
Store 55(v12) 58
|
|
64: 59 Load 63(gl_ObjectToWorldEXT)
|
|
Store 61(v13) 64
|
|
67: 59 Load 66(gl_WorldToObjectEXT)
|
|
Store 65(v14) 67
|
|
70: 16(int) Load 69(gl_GeometryIndexEXT)
|
|
Store 68(v15) 70
|
|
75: 59 Load 63(gl_ObjectToWorldEXT)
|
|
76: 72 Transpose 75
|
|
Store 74(v16) 76
|
|
78: 59 Load 66(gl_WorldToObjectEXT)
|
|
79: 72 Transpose 78
|
|
Store 77(v17) 79
|
|
82: 6(int) Load 81(gl_CullMaskEXT)
|
|
Store 80(v18) 82
|
|
89: 32(ptr) AccessChain 87(gl_HitTriangleVertexPositionsEXT) 88
|
|
90: 29(fvec3) Load 89
|
|
Store 83(v19) 90
|
|
Store 92(incomingPayload) 94
|
|
95: 16(int) Load 18(v2)
|
|
98: 97(bool) IEqual 95 96
|
|
SelectionMerge 100 None
|
|
BranchConditional 98 99 100
|
|
99: Label
|
|
IgnoreIntersectionKHR
|
|
100: Label
|
|
107: 6(int) Load 106(gl_SubgroupSize)
|
|
108: 28(float) ConvertUToF 107
|
|
110: 109(ptr) AccessChain 92(incomingPayload) 102
|
|
111: 28(float) Load 110
|
|
112: 28(float) FAdd 111 108
|
|
113: 109(ptr) AccessChain 92(incomingPayload) 102
|
|
Store 113 112
|
|
TerminateRayKHR
|
|
FunctionEnd
|