blob: 0434f16f973c4caf75621a9b83a728783e827724 [file] [log] [blame]
OpCapability Shader
%5 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %sk_FragColor %c
OpExecutionMode %main OriginUpperLeft
; Debug Information
OpName %sk_FragColor "sk_FragColor" ; id %11
OpName %aTexture "aTexture" ; id %15
OpName %aSampledTexture "aSampledTexture" ; id %18
OpName %aSecondSampledTexture "aSecondSampledTexture" ; id %22
OpName %c "c" ; id %23
OpName %helpers_helper_h4ZT_aSampledTexture "helpers_helper_h4ZT_aSampledTexture" ; id %6
OpName %helpers_helper_h4ZT_aSecondSampledTexture "helpers_helper_h4ZT_aSecondSampledTexture" ; id %7
OpName %helper_h4TZ_aSampledTexture "helper_h4TZ_aSampledTexture" ; id %8
OpName %helper_h4TZ_aSecondSampledTexture "helper_h4TZ_aSecondSampledTexture" ; id %9
OpName %main "main" ; id %10
; Annotations
OpDecorate %helpers_helper_h4ZT_aSampledTexture RelaxedPrecision
OpDecorate %helpers_helper_h4ZT_aSecondSampledTexture RelaxedPrecision
OpDecorate %helper_h4TZ_aSampledTexture RelaxedPrecision
OpDecorate %helper_h4TZ_aSecondSampledTexture RelaxedPrecision
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %aTexture Binding 1
OpDecorate %aTexture DescriptorSet 0
OpDecorate %aSampledTexture RelaxedPrecision
OpDecorate %aSampledTexture Binding 2
OpDecorate %aSampledTexture DescriptorSet 0
OpDecorate %aSecondSampledTexture RelaxedPrecision
OpDecorate %aSecondSampledTexture Binding 3
OpDecorate %aSecondSampledTexture DescriptorSet 0
OpDecorate %c Location 1
OpDecorate %29 RelaxedPrecision
OpDecorate %30 RelaxedPrecision
OpDecorate %34 RelaxedPrecision
OpDecorate %35 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
%16 = OpTypeImage %float 2D 0 0 0 2 Rgba8
%_ptr_UniformConstant_16 = OpTypePointer UniformConstant %16
%aTexture = OpVariable %_ptr_UniformConstant_16 UniformConstant ; Binding 1, DescriptorSet 0
%19 = OpTypeImage %float 2D 0 0 0 1 Unknown
%20 = OpTypeSampledImage %19
%_ptr_UniformConstant_20 = OpTypePointer UniformConstant %20
%aSampledTexture = OpVariable %_ptr_UniformConstant_20 UniformConstant ; RelaxedPrecision, Binding 2, DescriptorSet 0
%aSecondSampledTexture = OpVariable %_ptr_UniformConstant_20 UniformConstant ; RelaxedPrecision, Binding 3, DescriptorSet 0
%v2float = OpTypeVector %float 2
%_ptr_Input_v2float = OpTypePointer Input %v2float
%c = OpVariable %_ptr_Input_v2float Input ; Location 1
%26 = OpTypeFunction %v4float %_ptr_UniformConstant_16
%void = OpTypeVoid
%44 = OpTypeFunction %void
; Function helpers_helper_h4ZT_aSampledTexture
%helpers_helper_h4ZT_aSampledTexture = OpFunction %v4float None %26 ; RelaxedPrecision
%27 = OpFunctionParameter %_ptr_UniformConstant_16
%28 = OpLabel
%30 = OpLoad %20 %aSampledTexture ; RelaxedPrecision
%31 = OpLoad %v2float %c
%29 = OpImageSampleImplicitLod %v4float %30 %31 ; RelaxedPrecision
OpReturnValue %29
OpFunctionEnd
; Function helpers_helper_h4ZT_aSecondSampledTexture
%helpers_helper_h4ZT_aSecondSampledTexture = OpFunction %v4float None %26 ; RelaxedPrecision
%32 = OpFunctionParameter %_ptr_UniformConstant_16
%33 = OpLabel
%35 = OpLoad %20 %aSecondSampledTexture ; RelaxedPrecision
%36 = OpLoad %v2float %c
%34 = OpImageSampleImplicitLod %v4float %35 %36 ; RelaxedPrecision
OpReturnValue %34
OpFunctionEnd
; Function helper_h4TZ_aSampledTexture
%helper_h4TZ_aSampledTexture = OpFunction %v4float None %26 ; RelaxedPrecision
%37 = OpFunctionParameter %_ptr_UniformConstant_16
%38 = OpLabel
%39 = OpFunctionCall %v4float %helpers_helper_h4ZT_aSampledTexture %37
OpReturnValue %39
OpFunctionEnd
; Function helper_h4TZ_aSecondSampledTexture
%helper_h4TZ_aSecondSampledTexture = OpFunction %v4float None %26 ; RelaxedPrecision
%40 = OpFunctionParameter %_ptr_UniformConstant_16
%41 = OpLabel
%42 = OpFunctionCall %v4float %helpers_helper_h4ZT_aSecondSampledTexture %40
OpReturnValue %42
OpFunctionEnd
; Function main
%main = OpFunction %void None %44
%45 = OpLabel
%46 = OpFunctionCall %v4float %helper_h4TZ_aSampledTexture %aTexture
OpStore %sk_FragColor %46
%47 = OpFunctionCall %v4float %helper_h4TZ_aSecondSampledTexture %aTexture
OpStore %sk_FragColor %47
%48 = OpFunctionCall %v4float %helper_h4TZ_aSampledTexture %aTexture
OpStore %sk_FragColor %48
OpReturn
OpFunctionEnd