spv.ext.hitobject-allops.rchit // Module Version 10400 // Generated by (magic number): 8000b // Id's are bound by 114 Capability RayQueryKHR Capability RayTracingKHR Capability ShaderInvocationReorderEXT Extension "SPV_EXT_shader_invocation_reorder" Extension "SPV_KHR_ray_query" Extension "SPV_KHR_ray_tracing" 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint ClosestHitKHR 4 "main" 9 14 22 25 36 42 43 44 49 56 112 Source GLSL 460 SourceExtension "GL_EXT_ray_query" SourceExtension "GL_EXT_ray_tracing" SourceExtension "GL_EXT_shader_invocation_reorder" SourceExtension "GL_NV_ray_tracing_motion_blur" Name 4 "main" Name 9 "attr" Name 12 "hBlock" MemberName 12(hBlock) 0 "attrval" Name 14 "" Name 22 "hObj" Name 25 "as" Name 36 "payload" Name 40 "pBlock" MemberName 40(pBlock) 0 "val1" MemberName 40(pBlock) 1 "val2" Name 42 "" Name 43 "hObjNop" Name 44 "hObjMiss" Name 49 "hObjHit" Name 54 "block" MemberName 54(block) 0 "op" Name 56 "" Name 71 "rayflags" Name 74 "tmin" Name 76 "tmax" Name 79 "orig" Name 81 "dir" Name 83 "oorig" Name 85 "odir" Name 89 "otw" Name 91 "wto" Name 94 "cid" Name 96 "iid" Name 98 "pid" Name 100 "gid" Name 102 "hkind" Name 106 "handle" Name 108 "rid" Name 112 "rq" Decorate 12(hBlock) Block Decorate 25(as) Binding 0 Decorate 25(as) DescriptorSet 0 Decorate 40(pBlock) Block Decorate 54(block) Block MemberDecorate 54(block) 0 Offset 0 Decorate 56 Binding 1 Decorate 56 DescriptorSet 0 2: TypeVoid 3: TypeFunction 2 6: TypeFloat 32 7: TypeVector 6(float) 2 8: TypePointer HitObjectAttributeEXT 7(fvec2) 9(attr): 8(ptr) Variable HitObjectAttributeEXT 10: 6(float) Constant 1065353216 11: 7(fvec2) ConstantComposite 10 10 12(hBlock): TypeStruct 6(float) 13: TypePointer HitObjectAttributeEXT 12(hBlock) 14: 13(ptr) Variable HitObjectAttributeEXT 15: TypeInt 32 1 16: 15(int) Constant 0 17: 6(float) Constant 1073741824 18: TypePointer HitObjectAttributeEXT 6(float) 20: TypeHitObjectEXT 21: TypePointer Private 20 22(hObj): 21(ptr) Variable Private 23: TypeAccelerationStructureKHR 24: TypePointer UniformConstant 23 25(as): 24(ptr) Variable UniformConstant 27: TypeInt 32 0 28: 27(int) Constant 1 29: TypeVector 6(float) 3 30: 6(float) Constant 1056964608 31: 29(fvec3) ConstantComposite 30 30 30 32: 29(fvec3) ConstantComposite 10 10 10 33: 15(int) Constant 1 34: TypeVector 6(float) 4 35: TypePointer RayPayloadKHR 34(fvec4) 36(payload): 35(ptr) Variable RayPayloadKHR 38: 6(float) Constant 1092616192 39: 15(int) Constant 2 40(pBlock): TypeStruct 7(fvec2) 7(fvec2) 41: TypePointer RayPayloadKHR 40(pBlock) 42: 41(ptr) Variable RayPayloadKHR 43(hObjNop): 21(ptr) Variable Private 44(hObjMiss): 21(ptr) Variable Private 45: 6(float) Constant 1069547520 46: 29(fvec3) ConstantComposite 45 45 45 47: 6(float) Constant 1084227584 48: 6(float) Constant 1090519040 49(hObjHit): 21(ptr) Variable Private 50: TypeBool 54(block): TypeStruct 6(float) 55: TypePointer StorageBuffer 54(block) 56: 55(ptr) Variable StorageBuffer 57: TypePointer StorageBuffer 6(float) 68: 6(float) Constant 1077936128 70: TypePointer Function 27(int) 73: TypePointer Function 6(float) 78: TypePointer Function 29(fvec3) 87: TypeMatrix 29(fvec3) 4 88: TypePointer Function 87 93: TypePointer Function 15(int) 104: TypeVector 27(int) 2 105: TypePointer Function 104(ivec2) 110: TypeRayQueryKHR 111: TypePointer Private 110 112(rq): 111(ptr) Variable Private 113: 27(int) Constant 254 4(main): 2 Function None 3 5: Label 71(rayflags): 70(ptr) Variable Function 74(tmin): 73(ptr) Variable Function 76(tmax): 73(ptr) Variable Function 79(orig): 78(ptr) Variable Function 81(dir): 78(ptr) Variable Function 83(oorig): 78(ptr) Variable Function 85(odir): 78(ptr) Variable Function 89(otw): 88(ptr) Variable Function 91(wto): 88(ptr) Variable Function 94(cid): 93(ptr) Variable Function 96(iid): 93(ptr) Variable Function 98(pid): 93(ptr) Variable Function 100(gid): 93(ptr) Variable Function 102(hkind): 70(ptr) Variable Function 106(handle): 105(ptr) Variable Function 108(rid): 70(ptr) Variable Function Store 9(attr) 11 19: 18(ptr) AccessChain 14 16 Store 19 17 26: 23 Load 25(as) HitObjectTraceRayEXT 22(hObj) 26 28 28 28 28 28 31 30 32 10 36(payload) 37: 23 Load 25(as) HitObjectTraceRayMotionEXT 22(hObj) 37 28 28 28 28 28 31 30 32 10 38 42 HitObjectRecordEmptyEXT 43(hObjNop) HitObjectRecordMissEXT 44(hObjMiss) 28 28 31 17 46 47 HitObjectRecordMissMotionEXT 44(hObjMiss) 28 28 31 17 46 47 48 HitObjectExecuteShaderEXT 49(hObjHit) 36(payload) 51: 50(bool) HitObjectIsHitEXT 22(hObj) SelectionMerge 53 None BranchConditional 51 52 59 52: Label 58: 57(ptr) AccessChain 56 16 Store 58 10 Branch 53 59: Label 60: 50(bool) HitObjectIsMissEXT 22(hObj) SelectionMerge 62 None BranchConditional 60 61 64 61: Label 63: 57(ptr) AccessChain 56 16 Store 63 17 Branch 62 64: Label 65: 50(bool) HitObjectIsEmptyEXT 22(hObj) SelectionMerge 67 None BranchConditional 65 66 67 66: Label 69: 57(ptr) AccessChain 56 16 Store 69 68 Branch 67 67: Label Branch 62 62: Label Branch 53 53: Label 72: 27(int) HitObjectGetRayFlagsEXT 49(hObjHit) Store 71(rayflags) 72 75: 6(float) HitObjectGetRayTMinEXT 49(hObjHit) Store 74(tmin) 75 77: 6(float) HitObjectGetRayTMaxEXT 49(hObjHit) Store 76(tmax) 77 80: 29(fvec3) HitObjectGetWorldRayOriginEXT 49(hObjHit) Store 79(orig) 80 82: 29(fvec3) HitObjectGetWorldRayDirectionEXT 49(hObjHit) Store 81(dir) 82 84: 29(fvec3) HitObjectGetObjectRayOriginEXT 49(hObjHit) Store 83(oorig) 84 86: 29(fvec3) HitObjectGetObjectRayDirectionEXT 49(hObjHit) Store 85(odir) 86 90: 87 HitObjectGetObjectToWorldEXT 49(hObjHit) Store 89(otw) 90 92: 87 HitObjectGetWorldToObjectEXT 49(hObjHit) Store 91(wto) 92 95: 15(int) HitObjectGetInstanceCustomIndexEXT 44(hObjMiss) Store 94(cid) 95 97: 15(int) HitObjectGetInstanceIdEXT 43(hObjNop) Store 96(iid) 97 99: 15(int) HitObjectGetPrimitiveIndexEXT 22(hObj) Store 98(pid) 99 101: 15(int) HitObjectGetGeometryIndexEXT 22(hObj) Store 100(gid) 101 103: 27(int) HitObjectGetHitKindEXT 22(hObj) Store 102(hkind) 103 HitObjectGetAttributesEXT 22(hObj) 9(attr) 107: 104(ivec2) HitObjectGetShaderRecordBufferHandleEXT 22(hObj) Store 106(handle) 107 109: 27(int) HitObjectGetShaderBindingTableRecordIndexEXT 22(hObj) Store 108(rid) 109 HitObjectRecordFromQueryEXT 49(hObjHit) 112(rq) 28 9(attr) HitObjectRecordFromQueryEXT 49(hObjHit) 112(rq) 28 9(attr) 113 Return FunctionEnd