blob: 721b89d7e06e4f3a76113963d24ebc1cc687d54f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 29
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %frag_main "frag_main" %value
OpExecutionMode %frag_main OriginUpperLeft
OpName %value "value"
OpName %frag_main_inner "frag_main_inner"
OpName %b "b"
OpName %v "v"
OpName %frag_main "frag_main"
OpDecorate %value Location 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%6 = OpTypeFunction %v4float
%9 = OpConstantNull %float
%_ptr_Function_float = OpTypePointer Function %float
%v3float = OpTypeVector %float 3
%_ptr_Function_v3float = OpTypePointer Function %v3float
%17 = OpConstantNull %v3float
%float_1 = OpConstant %float 1
%void = OpTypeVoid
%24 = OpTypeFunction %void
%frag_main_inner = OpFunction %v4float None %6
%8 = OpLabel
%b = OpVariable %_ptr_Function_float Function %9
%v = OpVariable %_ptr_Function_v3float Function %17
OpStore %b %9
%13 = OpLoad %float %b
%14 = OpCompositeConstruct %v3float %13 %13 %13
OpStore %v %14
%18 = OpLoad %v3float %v
%19 = OpCompositeExtract %float %18 0
%20 = OpCompositeExtract %float %18 1
%21 = OpCompositeExtract %float %18 2
%23 = OpCompositeConstruct %v4float %19 %20 %21 %float_1
OpReturnValue %23
OpFunctionEnd
%frag_main = OpFunction %void None %24
%27 = OpLabel
%28 = OpFunctionCall %v4float %frag_main_inner
OpStore %value %28
OpReturn
OpFunctionEnd