| OpCapability Shader |
| %5 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %sk_FragColor |
| OpExecutionMode %main OriginUpperLeft |
| |
| ; Debug Information |
| OpName %sk_FragColor "sk_FragColor" ; id %7 |
| OpName %s "s" ; id %11 |
| OpName %main "main" ; id %6 |
| OpName %a "a" ; id %18 |
| OpName %b "b" ; id %26 |
| |
| ; Annotations |
| OpDecorate %sk_FragColor RelaxedPrecision |
| OpDecorate %sk_FragColor Location 0 |
| OpDecorate %sk_FragColor Index 0 |
| OpDecorate %s RelaxedPrecision |
| OpDecorate %s Binding 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %20 RelaxedPrecision |
| OpDecorate %21 RelaxedPrecision |
| OpDecorate %27 RelaxedPrecision |
| OpDecorate %28 RelaxedPrecision |
| OpDecorate %32 RelaxedPrecision |
| OpDecorate %33 RelaxedPrecision |
| OpDecorate %35 RelaxedPrecision |
| OpDecorate %36 RelaxedPrecision |
| OpDecorate %37 RelaxedPrecision |
| |
| ; 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 |
| %s = OpVariable %_ptr_UniformConstant_13 UniformConstant ; RelaxedPrecision, Binding 0, DescriptorSet 0 |
| %void = OpTypeVoid |
| %16 = OpTypeFunction %void |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %float_0 = OpConstant %float 0 |
| %v2float = OpTypeVector %float 2 |
| %24 = OpConstantComposite %v2float %float_0 %float_0 |
| %float_n0_474999994 = OpConstant %float -0.474999994 |
| %v3float = OpTypeVector %float 3 |
| %30 = OpConstantComposite %v3float %float_0 %float_0 %float_0 |
| |
| |
| ; Function main |
| %main = OpFunction %void None %16 |
| |
| %17 = OpLabel |
| %a = OpVariable %_ptr_Function_v4float Function |
| %b = OpVariable %_ptr_Function_v4float Function |
| %21 = OpLoad %13 %s ; RelaxedPrecision |
| %20 = OpImageSampleImplicitLod %v4float %21 %24 Bias %float_n0_474999994 ; RelaxedPrecision |
| OpStore %a %20 |
| %28 = OpLoad %13 %s ; RelaxedPrecision |
| %27 = OpImageSampleProjImplicitLod %v4float %28 %30 Bias %float_n0_474999994 ; RelaxedPrecision |
| OpStore %b %27 |
| %31 = OpVectorShuffle %v2float %20 %20 0 1 |
| %32 = OpCompositeExtract %float %31 0 ; RelaxedPrecision |
| %33 = OpCompositeExtract %float %31 1 ; RelaxedPrecision |
| %34 = OpVectorShuffle %v2float %27 %27 0 1 |
| %35 = OpCompositeExtract %float %34 0 ; RelaxedPrecision |
| %36 = OpCompositeExtract %float %34 1 ; RelaxedPrecision |
| %37 = OpCompositeConstruct %v4float %32 %33 %35 %36 ; RelaxedPrecision |
| OpStore %sk_FragColor %37 |
| OpReturn |
| OpFunctionEnd |