spv.debuginfo.rt_types.glsl.rgen // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 123 Capability RayQueryKHR Capability RayTracingNV Extension "SPV_KHR_non_semantic_info" Extension "SPV_KHR_ray_query" Extension "SPV_NV_ray_tracing" 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 3: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint RayGenerationKHR 14 "main" 2: String "spv.debuginfo.rt_types.glsl.rgen" 8: String "uint" 16: String "main" 19: String "// OpModuleProcessed auto-map-locations // OpModuleProcessed auto-map-bindings // OpModuleProcessed client vulkan100 // OpModuleProcessed target-env vulkan1.0 // OpModuleProcessed keep-uncalled // OpModuleProcessed entry-point main #line 1 #version 460 #extension GL_NV_ray_tracing : enable #extension GL_EXT_ray_query : enable layout(binding = 0, set = 0) uniform accelerationStructureEXT acc0; layout(shaderRecordNV) buffer block { vec3 dir; vec3 origin; }; void main() { rayQueryEXT localRayQuery; uint rayFlags = gl_RayFlagsOpaqueEXT | gl_RayFlagsSkipClosestHitShaderEXT; float tMin = 0.f; float tMax = 1000.f; rayQueryInitializeEXT(localRayQuery, acc0, rayFlags, 0xFF , origin, tMin, dir, tMax); if (!rayQueryProceedEXT(localRayQuery)) { rayQueryTerminateEXT(localRayQuery); } } " 33: String "rayFlags" 40: String "float" 46: String "tMin" 53: String "tMax" 60: String "rayQuery" 62: String "@rayQuery" 68: String "localRayQuery" 72: String "accelerationStructure" 73: String "@accelerationStructure" 78: String "acc0" 87: String "origin" 90: String "block" 96: String "" 98: String "int" 111: String "bool" SourceExtension "GL_EXT_ray_query" SourceExtension "GL_NV_ray_tracing" Name 14 "main" Name 31 "rayFlags" Name 44 "tMin" Name 51 "tMax" Name 66 "localRayQuery" Name 76 "acc0" Name 85 "block" MemberName 85(block) 0 "dir" MemberName 85(block) 1 "origin" Name 94 "" Decorate 76(acc0) DescriptorSet 0 Decorate 76(acc0) Binding 0 MemberDecorate 85(block) 0 Offset 0 MemberDecorate 85(block) 1 Offset 16 Decorate 85(block) BufferBlock 4: TypeVoid 5: TypeFunction 4 7: TypeInt 32 0 10: 7(int) Constant 32 11: 7(int) Constant 6 12: 7(int) Constant 0 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 13: 7(int) Constant 3 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 20: 7(int) Constant 12 22: 7(int) Constant 1 23: 7(int) Constant 4 24: 7(int) Constant 2 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 28: TypePointer Function 7(int) 29: 7(int) Constant 7 30: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 29 12 34: 7(int) Constant 15 32: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 33 9 18 34 12 17 23 36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 38: 7(int) Constant 9 39: TypeFloat 32 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 40 10 13 12 42: TypePointer Function 39(float) 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 41 29 12 47: 7(int) Constant 16 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 41 18 47 12 17 23 50: 39(float) Constant 0 54: 7(int) Constant 17 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 41 18 54 12 17 23 57: 39(float) Constant 1148846080 58: TypeRayQueryKHR 61: 7(int) Constant 18 63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 22 18 61 12 21 62 63 13 64: TypePointer Private 58 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 59 11 12 66(localRayQuery): 64(ptr) Variable Private 69: 7(int) Constant 8 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 68 59 18 61 12 21 68 66(localRayQuery) 69 70: TypeAccelerationStructureKHR 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 72 22 18 61 12 21 73 63 13 74: TypePointer UniformConstant 70 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 71 12 12 76(acc0): 74(ptr) Variable UniformConstant 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 78 71 18 61 12 21 78 76(acc0) 69 82: 7(int) Constant 255 83: TypeVector 39(float) 3 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 41 13 85(block): TypeStruct 83(fvec3) 83(fvec3) 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 84 18 38 29 12 12 13 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 87 84 18 38 29 12 12 13 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 90 22 18 61 12 21 90 12 13 86 88 91: TypePointer ShaderRecordBufferKHR 85(block) 92: 7(int) Constant 5343 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 89 92 12 94: 91(ptr) Variable ShaderRecordBufferKHR 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 96 89 18 61 12 21 96 94 69 97: TypeInt 32 1 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 98 10 23 12 100: 97(int) Constant 1 101: TypePointer ShaderRecordBufferKHR 83(fvec3) 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 84 92 12 106: 97(int) Constant 0 110: TypeBool 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 111 10 24 12 115: 7(int) Constant 19 121: 7(int) Constant 21 14(main): 4 Function None 5 15: Label 31(rayFlags): 28(ptr) Variable Function 44(tMin): 42(ptr) Variable Function 51(tMax): 42(ptr) Variable Function 26: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 25: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 34 34 12 12 35: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 32 31(rayFlags) 36 Store 31(rayFlags) 38 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 47 47 12 12 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 45 44(tMin) 36 Store 44(tMin) 50 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 54 54 12 12 55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 51(tMax) 36 Store 51(tMax) 57 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 61 61 12 12 79: 70 Load 76(acc0) 81: 7(int) Load 31(rayFlags) 103: 101(ptr) AccessChain 94 100 104: 83(fvec3) Load 103 105: 39(float) Load 44(tMin) 107: 101(ptr) AccessChain 94 106 108: 83(fvec3) Load 107 109: 39(float) Load 51(tMax) RayQueryInitializeKHR 66(localRayQuery) 79 81 82 104 105 108 109 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 115 115 12 12 113: 110(bool) RayQueryProceedKHR 66(localRayQuery) 116: 110(bool) LogicalNot 113 SelectionMerge 118 None BranchConditional 116 117 118 117: Label 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 121 121 12 12 RayQueryTerminateKHR 66(localRayQuery) Branch 118 118: Label 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 Return FunctionEnd