blob: e91609f00f95f6324776aba0799b47dddc6044a5 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 68
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %x_3_param_1 %x_4_1_1 %gl_Position_1 %vertex_point_size
OpName %x_3_param_1 "x_3_param_1"
OpName %x_4_1_1 "x_4_1_1"
OpName %gl_Position_1 "gl_Position_1"
OpName %vertex_point_size "vertex_point_size"
OpName %x_3 "x_3"
OpName %x_4 "x_4"
OpName %gl_Position "gl_Position"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_4_1"
OpMemberName %main_out 1 "gl_Position"
OpName %main_inner "main_inner"
OpName %x_3_param "x_3_param"
OpName %main "main"
OpDecorate %x_3_param_1 Location 0
OpDecorate %x_4_1_1 Location 0
OpDecorate %x_4_1_1 Flat
OpDecorate %gl_Position_1 BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%_ptr_Input_v2float = OpTypePointer Input %v2float
%x_3_param_1 = OpVariable %_ptr_Input_v2float Input
%uint = OpTypeInt 32 0
%_ptr_Output_uint = OpTypePointer Output %uint
%8 = OpConstantNull %uint
%x_4_1_1 = OpVariable %_ptr_Output_uint Output %8
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%12 = OpConstantNull %v4float
%gl_Position_1 = OpVariable %_ptr_Output_v4float Output %12
%_ptr_Output_float = OpTypePointer Output %float
%15 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %15
%_ptr_Private_v2float = OpTypePointer Private %v2float
%18 = OpConstantNull %v2float
%x_3 = OpVariable %_ptr_Private_v2float Private %18
%_ptr_Private_uint = OpTypePointer Private %uint
%x_4 = OpVariable %_ptr_Private_uint Private %8
%_ptr_Private_v4float = OpTypePointer Private %v4float
%gl_Position = OpVariable %_ptr_Private_v4float Private %12
%void = OpTypeVoid
%23 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%uint_1 = OpConstant %uint 1
%float_1_02777779 = OpConstant %float 1.02777779
%float_18 = OpConstant %float 18
%float_1 = OpConstant %float 1
%uint_36 = OpConstant %uint 36
%float_0 = OpConstant %float 0
%main_out = OpTypeStruct %uint %v4float
%53 = OpTypeFunction %main_out %v2float
%main_1 = OpFunction %void None %23
%26 = OpLabel
%29 = OpAccessChain %_ptr_Private_float %x_3 %uint_0
%30 = OpLoad %float %29
%32 = OpAccessChain %_ptr_Private_float %x_3 %uint_1
%33 = OpLoad %float %32
%36 = OpFAdd %float %30 %float_1_02777779
%38 = OpFMul %float %36 %float_18
%40 = OpFSub %float %38 %float_1
%34 = OpConvertFToU %uint %40
%42 = OpFAdd %float %33 %float_1_02777779
%43 = OpFMul %float %42 %float_18
%44 = OpFSub %float %43 %float_1
%41 = OpConvertFToU %uint %44
%46 = OpIMul %uint %41 %uint_36
%47 = OpIAdd %uint %34 %46
OpStore %x_4 %47
%48 = OpLoad %v2float %x_3
%49 = OpCompositeExtract %float %48 0
%50 = OpCompositeExtract %float %48 1
%52 = OpCompositeConstruct %v4float %49 %50 %float_0 %float_1
OpStore %gl_Position %52
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %53
%x_3_param = OpFunctionParameter %v2float
%57 = OpLabel
OpStore %x_3 %x_3_param
%58 = OpFunctionCall %void %main_1
%59 = OpLoad %uint %x_4
%60 = OpLoad %v4float %gl_Position
%61 = OpCompositeConstruct %main_out %59 %60
OpReturnValue %61
OpFunctionEnd
%main = OpFunction %void None %23
%63 = OpLabel
%65 = OpLoad %v2float %x_3_param_1
%64 = OpFunctionCall %main_out %main_inner %65
%66 = OpCompositeExtract %uint %64 0
OpStore %x_4_1_1 %66
%67 = OpCompositeExtract %v4float %64 1
OpStore %gl_Position_1 %67
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd