1; SPIR-V 2; Version: 1.0 3; Generator: Google spiregg; 0 4; Bound: 32 5; Schema: 0 6 OpCapability Shader 7 OpMemoryModel Logical GLSL450 8 OpEntryPoint Fragment %main "main" %in_var_TEXCOORD0 %out_var_SV_Target 9 OpExecutionMode %main OriginUpperLeft 10 OpSource HLSL 600 11 OpName %type_2d_image "type.2d.image" 12 OpName %g_Texture "g_Texture" 13 OpName %type_sampler "type.sampler" 14 OpName %g_Sampler "g_Sampler" 15 OpName %g_CompareSampler "g_CompareSampler" 16 OpName %in_var_TEXCOORD0 "in.var.TEXCOORD0" 17 OpName %out_var_SV_Target "out.var.SV_Target" 18 OpName %main "main" 19 OpName %type_sampled_image "type.sampled.image" 20 OpDecorate %in_var_TEXCOORD0 Location 0 21 OpDecorate %out_var_SV_Target Location 0 22 OpDecorate %g_Texture DescriptorSet 0 23 OpDecorate %g_Texture Binding 0 24 OpDecorate %g_Sampler DescriptorSet 0 25 OpDecorate %g_Sampler Binding 0 26 OpDecorate %g_CompareSampler DescriptorSet 0 27 OpDecorate %g_CompareSampler Binding 1 28 %float = OpTypeFloat 32 29 %float_0_5 = OpConstant %float 0.5 30 %float_0 = OpConstant %float 0 31%type_2d_image = OpTypeImage %float 2D 2 0 0 1 Unknown 32%_ptr_UniformConstant_type_2d_image = OpTypePointer UniformConstant %type_2d_image 33%type_sampler = OpTypeSampler 34%_ptr_UniformConstant_type_sampler = OpTypePointer UniformConstant %type_sampler 35 %v2float = OpTypeVector %float 2 36%_ptr_Input_v2float = OpTypePointer Input %v2float 37%_ptr_Output_float = OpTypePointer Output %float 38 %void = OpTypeVoid 39 %19 = OpTypeFunction %void 40%type_sampled_image = OpTypeSampledImage %type_2d_image 41 %v4float = OpTypeVector %float 4 42 %g_Texture = OpVariable %_ptr_UniformConstant_type_2d_image UniformConstant 43 %g_Sampler = OpVariable %_ptr_UniformConstant_type_sampler UniformConstant 44%g_CompareSampler = OpVariable %_ptr_UniformConstant_type_sampler UniformConstant 45%in_var_TEXCOORD0 = OpVariable %_ptr_Input_v2float Input 46%out_var_SV_Target = OpVariable %_ptr_Output_float Output 47 %main = OpFunction %void None %19 48 %21 = OpLabel 49 %22 = OpLoad %v2float %in_var_TEXCOORD0 50 %23 = OpLoad %type_2d_image %g_Texture 51 %24 = OpLoad %type_sampler %g_Sampler 52 %25 = OpSampledImage %type_sampled_image %23 %24 53 %26 = OpImageSampleImplicitLod %v4float %25 %22 None 54 %27 = OpCompositeExtract %float %26 0 55 %28 = OpLoad %type_sampler %g_CompareSampler 56 %29 = OpSampledImage %type_sampled_image %23 %28 57 %30 = OpImageSampleDrefExplicitLod %float %29 %22 %float_0_5 Lod %float_0 58 %31 = OpFAdd %float %27 %30 59 OpStore %out_var_SV_Target %31 60 OpReturn 61 OpFunctionEnd 62