blob: 4c92dc056b790607baebc5e8993adebf6ffd6b32 [file] [log] [blame]
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 %_entrypoint_v "_entrypoint_v" ; id %11
OpName %main "main" ; id %6
OpName %r "r" ; id %24
OpName %g "g" ; id %26
; Annotations
OpDecorate %main RelaxedPrecision
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %r RelaxedPrecision
OpDecorate %g 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
%void = OpTypeVoid
%13 = OpTypeFunction %void
%float_0 = OpConstant %float 0
%v2float = OpTypeVector %float 2
%17 = OpConstantComposite %v2float %float_0 %float_0
%_ptr_Function_v2float = OpTypePointer Function %v2float
%21 = OpTypeFunction %v4float %_ptr_Function_v2float
%_ptr_Function_float = OpTypePointer Function %float
%float_1 = OpConstant %float 1
%28 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1
; Function _entrypoint_v
%_entrypoint_v = OpFunction %void None %13
%14 = OpLabel
%18 = OpVariable %_ptr_Function_v2float Function
OpStore %18 %17
%20 = OpFunctionCall %v4float %main %18
OpStore %sk_FragColor %20
OpReturn
OpFunctionEnd
; Function main
%main = OpFunction %v4float None %21 ; RelaxedPrecision
%22 = OpFunctionParameter %_ptr_Function_v2float
%23 = OpLabel
%r = OpVariable %_ptr_Function_float Function ; RelaxedPrecision
%g = OpVariable %_ptr_Function_float Function ; RelaxedPrecision
OpStore %r %float_0
OpStore %g %float_1
OpReturnValue %28
OpFunctionEnd