| OpCapability Shader |
| %5 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor |
| OpExecutionMode %_entrypoint_v OriginUpperLeft |
| |
| ; Debug Information |
| OpName %sk_FragColor "sk_FragColor" ; id %7 |
| OpName %t "t" ; id %11 |
| OpName %_entrypoint_v "_entrypoint_v" ; id %15 |
| OpName %main "main" ; id %6 |
| OpName %sksl_synthetic_uniforms "sksl_synthetic_uniforms" ; id %36 |
| OpMemberName %sksl_synthetic_uniforms 0 "u_skRTFlip" |
| |
| ; Annotations |
| OpDecorate %main RelaxedPrecision |
| OpDecorate %sk_FragColor RelaxedPrecision |
| OpDecorate %sk_FragColor Location 0 |
| OpDecorate %sk_FragColor Index 0 |
| OpDecorate %t RelaxedPrecision |
| OpDecorate %t Binding 0 |
| OpDecorate %t DescriptorSet 0 |
| OpDecorate %28 RelaxedPrecision |
| OpDecorate %29 RelaxedPrecision |
| OpMemberDecorate %sksl_synthetic_uniforms 0 Offset 16384 |
| OpDecorate %sksl_synthetic_uniforms Block |
| OpDecorate %35 Binding 0 |
| OpDecorate %35 DescriptorSet 0 |
| |
| ; Types, variables and constants |
| %int = OpTypeInt 32 1 |
| %_ptr_Input_int = OpTypePointer Input %int |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %sk_FragColor = OpVariable %_ptr_Output_v4float Output ; RelaxedPrecision, Location 0, Index 0 |
| %12 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| %13 = OpTypeSampledImage %12 |
| %_ptr_UniformConstant_13 = OpTypePointer UniformConstant %13 |
| %t = OpVariable %_ptr_UniformConstant_13 UniformConstant ; RelaxedPrecision, Binding 0, DescriptorSet 0 |
| %void = OpTypeVoid |
| %17 = OpTypeFunction %void |
| %float_0 = OpConstant %float 0 |
| %v2float = OpTypeVector %float 2 |
| %21 = OpConstantComposite %v2float %float_0 %float_0 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %25 = OpTypeFunction %v4float %_ptr_Function_v2float |
| %sksl_synthetic_uniforms = OpTypeStruct %v2float ; Block |
| %_ptr_Uniform_sksl_synthetic_uniforms = OpTypePointer Uniform %sksl_synthetic_uniforms |
| %35 = OpVariable %_ptr_Uniform_sksl_synthetic_uniforms Uniform ; Binding 0, DescriptorSet 0 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| |
| |
| ; Function _entrypoint_v |
| %_entrypoint_v = OpFunction %void None %17 |
| |
| %18 = OpLabel |
| %22 = OpVariable %_ptr_Function_v2float Function |
| OpStore %22 %21 |
| %24 = OpFunctionCall %v4float %main %22 |
| OpStore %sk_FragColor %24 |
| OpReturn |
| OpFunctionEnd |
| |
| |
| ; Function main |
| %main = OpFunction %v4float None %25 ; RelaxedPrecision |
| %26 = OpFunctionParameter %_ptr_Function_v2float |
| |
| %27 = OpLabel |
| %29 = OpLoad %13 %t ; RelaxedPrecision |
| %30 = OpLoad %v2float %26 |
| %32 = OpLoad %v2float %26 |
| %31 = OpDPdx %v2float %32 |
| %34 = OpLoad %v2float %26 |
| %33 = OpDPdy %v2float %34 |
| %39 = OpAccessChain %_ptr_Uniform_v2float %35 %int_0 |
| %41 = OpLoad %v2float %39 |
| %42 = OpVectorShuffle %v2float %41 %41 1 1 |
| %43 = OpFMul %v2float %33 %42 |
| %28 = OpImageSampleExplicitLod %v4float %29 %30 Grad %31 %43 ; RelaxedPrecision |
| OpReturnValue %28 |
| OpFunctionEnd |