blob: eed89f715e26985b84e26cf53d81db456729c3f9 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 23
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %f "f"
OpName %a "a"
OpName %b "b"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%10 = OpConstantComposite %v3float %float_1 %float_2 %float_3
%_ptr_Function_v3float = OpTypePointer Function %v3float
%13 = OpConstantNull %v3float
%float_0 = OpConstant %float 0
%float_5 = OpConstant %float 5
%16 = OpConstantComposite %v3float %float_0 %float_5 %float_0
%f = OpFunction %void None %1
%4 = OpLabel
%a = OpVariable %_ptr_Function_v3float Function %13
%b = OpVariable %_ptr_Function_v3float Function %13
OpStore %a %10
OpStore %b %16
%18 = OpLoad %v3float %a
%19 = OpLoad %v3float %b
%20 = OpLoad %v3float %b
%21 = OpFAdd %v3float %19 %20
%22 = OpFDiv %v3float %18 %21
OpReturn
OpFunctionEnd