GL_EXT_ray_tracing_position_fetch
This commit is contained in:
parent
d6e9d3bb4e
commit
9d8c7b75c9
18 changed files with 461 additions and 194 deletions
|
|
@ -1,18 +1,21 @@
|
|||
spv.ext.ClosestHitShader.rchit
|
||||
// Module Version 10400
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 102
|
||||
// Id's are bound by 109
|
||||
|
||||
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 ClosestHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67 70 82 86 99 101
|
||||
EntryPoint ClosestHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67 70 82 88 94 106 108
|
||||
Source GLSL 460
|
||||
SourceExtension "GL_EXT_ray_cull_mask"
|
||||
SourceExtension "GL_EXT_ray_tracing"
|
||||
SourceExtension "GL_EXT_ray_tracing_position_fetch"
|
||||
Name 4 "main"
|
||||
Name 9 "v0"
|
||||
Name 11 "gl_LaunchIDEXT"
|
||||
|
|
@ -50,9 +53,11 @@ spv.ext.ClosestHitShader.rchit
|
|||
Name 78 "v17"
|
||||
Name 81 "v18"
|
||||
Name 82 "gl_CullMaskEXT"
|
||||
Name 86 "accEXT"
|
||||
Name 99 "incomingPayload"
|
||||
Name 101 "localPayload"
|
||||
Name 84 "v19"
|
||||
Name 88 "gl_HitTriangleVertexPositionsEXT"
|
||||
Name 94 "accEXT"
|
||||
Name 106 "incomingPayload"
|
||||
Name 108 "localPayload"
|
||||
Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
|
||||
Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
|
||||
Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
|
||||
|
|
@ -70,8 +75,9 @@ spv.ext.ClosestHitShader.rchit
|
|||
Decorate 67(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR
|
||||
Decorate 70(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR
|
||||
Decorate 82(gl_CullMaskEXT) BuiltIn CullMaskKHR
|
||||
Decorate 86(accEXT) DescriptorSet 0
|
||||
Decorate 86(accEXT) Binding 0
|
||||
Decorate 88(gl_HitTriangleVertexPositionsEXT) BuiltIn HitTriangleVertexPositionsKHR
|
||||
Decorate 94(accEXT) DescriptorSet 0
|
||||
Decorate 94(accEXT) Binding 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 0
|
||||
|
|
@ -112,23 +118,27 @@ spv.ext.ClosestHitShader.rchit
|
|||
73: TypeMatrix 72(fvec4) 3
|
||||
74: TypePointer Function 73
|
||||
82(gl_CullMaskEXT): 57(ptr) Variable Input
|
||||
84: TypeAccelerationStructureKHR
|
||||
85: TypePointer UniformConstant 84
|
||||
86(accEXT): 85(ptr) Variable UniformConstant
|
||||
88: 6(int) Constant 0
|
||||
89: 6(int) Constant 1
|
||||
90: 6(int) Constant 2
|
||||
91: 6(int) Constant 3
|
||||
92: 28(float) Constant 1056964608
|
||||
93: 29(fvec3) ConstantComposite 92 92 92
|
||||
94: 28(float) Constant 1065353216
|
||||
95: 29(fvec3) ConstantComposite 94 94 94
|
||||
96: 28(float) Constant 1061158912
|
||||
97: 16(int) Constant 1
|
||||
98: TypePointer IncomingRayPayloadKHR 72(fvec4)
|
||||
99(incomingPayload): 98(ptr) Variable IncomingRayPayloadKHR
|
||||
100: TypePointer RayPayloadKHR 72(fvec4)
|
||||
101(localPayload): 100(ptr) Variable RayPayloadKHR
|
||||
85: 6(int) Constant 3
|
||||
86: TypeArray 29(fvec3) 85
|
||||
87: TypePointer Input 86
|
||||
88(gl_HitTriangleVertexPositionsEXT): 87(ptr) Variable Input
|
||||
89: 16(int) Constant 0
|
||||
92: TypeAccelerationStructureKHR
|
||||
93: TypePointer UniformConstant 92
|
||||
94(accEXT): 93(ptr) Variable UniformConstant
|
||||
96: 6(int) Constant 0
|
||||
97: 6(int) Constant 1
|
||||
98: 6(int) Constant 2
|
||||
99: 28(float) Constant 1056964608
|
||||
100: 29(fvec3) ConstantComposite 99 99 99
|
||||
101: 28(float) Constant 1065353216
|
||||
102: 29(fvec3) ConstantComposite 101 101 101
|
||||
103: 28(float) Constant 1061158912
|
||||
104: 16(int) Constant 1
|
||||
105: TypePointer IncomingRayPayloadKHR 72(fvec4)
|
||||
106(incomingPayload): 105(ptr) Variable IncomingRayPayloadKHR
|
||||
107: TypePointer RayPayloadKHR 72(fvec4)
|
||||
108(localPayload): 107(ptr) Variable RayPayloadKHR
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(v0): 8(ptr) Variable Function
|
||||
|
|
@ -150,6 +160,7 @@ spv.ext.ClosestHitShader.rchit
|
|||
75(v16): 74(ptr) Variable Function
|
||||
78(v17): 74(ptr) Variable Function
|
||||
81(v18): 55(ptr) Variable Function
|
||||
84(v19): 30(ptr) Variable Function
|
||||
12: 7(ivec3) Load 11(gl_LaunchIDEXT)
|
||||
Store 9(v0) 12
|
||||
15: 7(ivec3) Load 14(gl_LaunchSizeEXT)
|
||||
|
|
@ -190,7 +201,10 @@ spv.ext.ClosestHitShader.rchit
|
|||
Store 78(v17) 80
|
||||
83: 6(int) Load 82(gl_CullMaskEXT)
|
||||
Store 81(v18) 83
|
||||
87: 84 Load 86(accEXT)
|
||||
TraceRayKHR 87 88 89 90 91 88 93 92 95 96 99(incomingPayload)
|
||||
90: 32(ptr) AccessChain 88(gl_HitTriangleVertexPositionsEXT) 89
|
||||
91: 29(fvec3) Load 90
|
||||
Store 84(v19) 91
|
||||
95: 92 Load 94(accEXT)
|
||||
TraceRayKHR 95 96 97 98 85 96 100 99 102 103 106(incomingPayload)
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue