1; SPIR-V 2; Version: 1.0 3; Generator: Khronos Glslang Reference Front End; 8 4; Bound: 30 5; Schema: 0 6 OpCapability Shader 7 OpCapability SparseResidency 8 %1 = OpExtInstImport "GLSL.std.450" 9 OpMemoryModel Logical GLSL450 10 OpEntryPoint Fragment %main "main" %vUV %FragColor 11 OpExecutionMode %main OriginUpperLeft 12 OpSource GLSL 450 13 OpSourceExtension "GL_ARB_sparse_texture2" 14 OpSourceExtension "GL_ARB_sparse_texture_clamp" 15 OpName %main "main" 16 OpName %ret "ret" 17 OpName %uSamp "uSamp" 18 OpName %vUV "vUV" 19 OpName %texel "texel" 20 OpName %ResType "ResType" 21 OpName %FragColor "FragColor" 22 OpDecorate %uSamp DescriptorSet 0 23 OpDecorate %uSamp Binding 0 24 OpDecorate %vUV Location 0 25 OpDecorate %FragColor Location 0 26 %void = OpTypeVoid 27 %3 = OpTypeFunction %void 28 %bool = OpTypeBool 29%_ptr_Function_bool = OpTypePointer Function %bool 30 %float = OpTypeFloat 32 31 %10 = OpTypeImage %float 2D 0 0 0 1 Unknown 32 %11 = OpTypeSampledImage %10 33%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 34 %uSamp = OpVariable %_ptr_UniformConstant_11 UniformConstant 35 %v2float = OpTypeVector %float 2 36%_ptr_Input_v2float = OpTypePointer Input %v2float 37 %vUV = OpVariable %_ptr_Input_v2float Input 38 %v4float = OpTypeVector %float 4 39%_ptr_Function_v4float = OpTypePointer Function %v4float 40 %uint = OpTypeInt 32 0 41 %ResType = OpTypeStruct %uint %v4float 42%_ptr_Output_v4float = OpTypePointer Output %v4float 43 %FragColor = OpVariable %_ptr_Output_v4float Output 44 %main = OpFunction %void None %3 45 %5 = OpLabel 46 %ret = OpVariable %_ptr_Function_bool Function 47 %texel = OpVariable %_ptr_Function_v4float Function 48 %14 = OpLoad %11 %uSamp 49 %18 = OpLoad %v2float %vUV 50 %24 = OpImageSparseSampleImplicitLod %ResType %14 %18 51 %25 = OpCompositeExtract %v4float %24 1 52 OpStore %texel %25 53 %26 = OpCompositeExtract %uint %24 0 54 %27 = OpImageSparseTexelsResident %bool %26 55 OpStore %ret %27 56 OpReturn 57 OpFunctionEnd 58