1cb93a386Sopenharmony_ci; SPIR-V
2cb93a386Sopenharmony_ci; Version: 1.3
3cb93a386Sopenharmony_ci; Generator: Google spiregg; 0
4cb93a386Sopenharmony_ci; Bound: 36
5cb93a386Sopenharmony_ci; Schema: 0
6cb93a386Sopenharmony_ci               OpCapability Shader
7cb93a386Sopenharmony_ci               OpExtension "SPV_GOOGLE_hlsl_functionality1"
8cb93a386Sopenharmony_ci               OpExtension "SPV_GOOGLE_user_type"
9cb93a386Sopenharmony_ci               OpMemoryModel Logical GLSL450
10cb93a386Sopenharmony_ci               OpEntryPoint Fragment %psMain "main" %gl_FragCoord %in_var_TEXCOORD0 %out_var_SV_Target0
11cb93a386Sopenharmony_ci               OpExecutionMode %psMain OriginUpperLeft
12cb93a386Sopenharmony_ci               OpSource HLSL 500
13cb93a386Sopenharmony_ci               OpName %type_2d_image "type.2d.image"
14cb93a386Sopenharmony_ci               OpName %g_depthTexture "g_depthTexture"
15cb93a386Sopenharmony_ci               OpName %type_sampler "type.sampler"
16cb93a386Sopenharmony_ci               OpName %g_sampler "g_sampler"
17cb93a386Sopenharmony_ci               OpName %g_comp "g_comp"
18cb93a386Sopenharmony_ci               OpName %in_var_TEXCOORD0 "in.var.TEXCOORD0"
19cb93a386Sopenharmony_ci               OpName %out_var_SV_Target0 "out.var.SV_Target0"
20cb93a386Sopenharmony_ci               OpName %psMain "psMain"
21cb93a386Sopenharmony_ci               OpName %type_sampled_image "type.sampled.image"
22cb93a386Sopenharmony_ci               OpDecorate %gl_FragCoord BuiltIn FragCoord
23cb93a386Sopenharmony_ci               OpDecorateString %gl_FragCoord UserSemantic "SV_Position"
24cb93a386Sopenharmony_ci               OpDecorateString %in_var_TEXCOORD0 UserSemantic "TEXCOORD0"
25cb93a386Sopenharmony_ci               OpDecorateString %out_var_SV_Target0 UserSemantic "SV_Target0"
26cb93a386Sopenharmony_ci               OpDecorate %in_var_TEXCOORD0 Location 0
27cb93a386Sopenharmony_ci               OpDecorate %out_var_SV_Target0 Location 0
28cb93a386Sopenharmony_ci               OpDecorate %g_depthTexture DescriptorSet 0
29cb93a386Sopenharmony_ci               OpDecorate %g_depthTexture Binding 0
30cb93a386Sopenharmony_ci               OpDecorate %g_sampler DescriptorSet 0
31cb93a386Sopenharmony_ci               OpDecorate %g_sampler Binding 0
32cb93a386Sopenharmony_ci               OpDecorate %g_comp DescriptorSet 0
33cb93a386Sopenharmony_ci               OpDecorate %g_comp Binding 1
34cb93a386Sopenharmony_ci               OpDecorateString %g_depthTexture UserTypeGOOGLE "texture2d"
35cb93a386Sopenharmony_ci      %float = OpTypeFloat 32
36cb93a386Sopenharmony_ci  %float_0_5 = OpConstant %float 0.5
37cb93a386Sopenharmony_ci        %int = OpTypeInt 32 1
38cb93a386Sopenharmony_ci      %int_0 = OpConstant %int 0
39cb93a386Sopenharmony_ci      %v2int = OpTypeVector %int 2
40cb93a386Sopenharmony_ci         %16 = OpConstantComposite %v2int %int_0 %int_0
41cb93a386Sopenharmony_ci%type_2d_image = OpTypeImage %float 2D 2 0 0 1 Unknown
42cb93a386Sopenharmony_ci%_ptr_UniformConstant_type_2d_image = OpTypePointer UniformConstant %type_2d_image
43cb93a386Sopenharmony_ci%type_sampler = OpTypeSampler
44cb93a386Sopenharmony_ci%_ptr_UniformConstant_type_sampler = OpTypePointer UniformConstant %type_sampler
45cb93a386Sopenharmony_ci    %v4float = OpTypeVector %float 4
46cb93a386Sopenharmony_ci%_ptr_Input_v4float = OpTypePointer Input %v4float
47cb93a386Sopenharmony_ci    %v2float = OpTypeVector %float 2
48cb93a386Sopenharmony_ci%_ptr_Input_v2float = OpTypePointer Input %v2float
49cb93a386Sopenharmony_ci%_ptr_Output_v4float = OpTypePointer Output %v4float
50cb93a386Sopenharmony_ci       %void = OpTypeVoid
51cb93a386Sopenharmony_ci         %25 = OpTypeFunction %void
52cb93a386Sopenharmony_ci%type_sampled_image = OpTypeSampledImage %type_2d_image
53cb93a386Sopenharmony_ci%g_depthTexture = OpVariable %_ptr_UniformConstant_type_2d_image UniformConstant
54cb93a386Sopenharmony_ci  %g_sampler = OpVariable %_ptr_UniformConstant_type_sampler UniformConstant
55cb93a386Sopenharmony_ci     %g_comp = OpVariable %_ptr_UniformConstant_type_sampler UniformConstant
56cb93a386Sopenharmony_ci%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
57cb93a386Sopenharmony_ci%in_var_TEXCOORD0 = OpVariable %_ptr_Input_v2float Input
58cb93a386Sopenharmony_ci%out_var_SV_Target0 = OpVariable %_ptr_Output_v4float Output
59cb93a386Sopenharmony_ci     %psMain = OpFunction %void None %25
60cb93a386Sopenharmony_ci         %26 = OpLabel
61cb93a386Sopenharmony_ci         %27 = OpLoad %v2float %in_var_TEXCOORD0
62cb93a386Sopenharmony_ci         %28 = OpLoad %type_2d_image %g_depthTexture
63cb93a386Sopenharmony_ci         %29 = OpLoad %type_sampler %g_comp
64cb93a386Sopenharmony_ci         %30 = OpSampledImage %type_sampled_image %28 %29
65cb93a386Sopenharmony_ci         %31 = OpImageDrefGather %v4float %30 %27 %float_0_5 None
66cb93a386Sopenharmony_ci         %32 = OpLoad %type_sampler %g_sampler
67cb93a386Sopenharmony_ci         %33 = OpSampledImage %type_sampled_image %28 %32
68cb93a386Sopenharmony_ci         %34 = OpImageGather %v4float %33 %27 %int_0 ConstOffset %16
69cb93a386Sopenharmony_ci         %35 = OpFMul %v4float %31 %34
70cb93a386Sopenharmony_ci               OpStore %out_var_SV_Target0 %35
71cb93a386Sopenharmony_ci               OpReturn
72cb93a386Sopenharmony_ci               OpFunctionEnd
73