blob: a640cfbbbe27ac390dc4a3fa69e4d4dd26526ba0 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 55
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %dot_ef6b1d "dot_ef6b1d"
OpName %arg_0 "arg_0"
OpName %arg_1 "arg_1"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
%_ptr_Function_v4int = OpTypePointer Function %v4int
%19 = OpConstantNull %v4int
%_ptr_Function_int = OpTypePointer Function %int
%40 = OpConstantNull %int
%41 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%dot_ef6b1d = OpFunction %void None %9
%12 = OpLabel
%arg_0 = OpVariable %_ptr_Function_v4int Function %19
%arg_1 = OpVariable %_ptr_Function_v4int Function %19
%res = OpVariable %_ptr_Function_int Function %40
OpStore %arg_0 %16
OpStore %arg_1 %16
%22 = OpLoad %v4int %arg_0
%23 = OpLoad %v4int %arg_1
%24 = OpCompositeExtract %int %22 0
%25 = OpCompositeExtract %int %23 0
%26 = OpIMul %int %24 %25
%27 = OpCompositeExtract %int %22 1
%28 = OpCompositeExtract %int %23 1
%29 = OpIMul %int %27 %28
%30 = OpIAdd %int %26 %29
%31 = OpCompositeExtract %int %22 2
%32 = OpCompositeExtract %int %23 2
%33 = OpIMul %int %31 %32
%34 = OpIAdd %int %30 %33
%35 = OpCompositeExtract %int %22 3
%36 = OpCompositeExtract %int %23 3
%37 = OpIMul %int %35 %36
%21 = OpIAdd %int %34 %37
OpStore %res %21
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %41
%43 = OpLabel
%44 = OpFunctionCall %void %dot_ef6b1d
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%46 = OpLabel
%47 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %47
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%50 = OpLabel
%51 = OpFunctionCall %void %dot_ef6b1d
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%53 = OpLabel
%54 = OpFunctionCall %void %dot_ef6b1d
OpReturn
OpFunctionEnd