blob: edcedc53202dbc4f44a15e120ce8706a03a7f567 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %main_position_Output %main___point_size_Output
OpName %main_position_Output "main_position_Output"
OpName %main___point_size_Output "main___point_size_Output"
OpMemberName %Normals 0 "f"
OpName %Normals "Normals"
OpName %main_inner "main_inner"
OpName %zero "zero"
OpName %main "main"
OpDecorate %main_position_Output BuiltIn Position
OpDecorate %main___point_size_Output BuiltIn PointSize
OpMemberDecorate %Normals 0 Offset 0
OpDecorate %_arr_Normals_uint_1 ArrayStride 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%main_position_Output = OpVariable %_ptr_Output_v4float Output
%_ptr_Output_float = OpTypePointer Output %float
%main___point_size_Output = OpVariable %_ptr_Output_float Output
%v3float = OpTypeVector %float 3
%Normals = OpTypeStruct %v3float
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%_arr_Normals_uint_1 = OpTypeArray %Normals %uint_1
%_ptr_Private__arr_Normals_uint_1 = OpTypePointer Private %_arr_Normals_uint_1
%float_0 = OpConstant %float 0
%float_1 = OpConstant %float 1
%16 = OpConstantComposite %v3float %float_0 %float_0 %float_1
%15 = OpConstantComposite %Normals %16
%14 = OpConstantComposite %_arr_Normals_uint_1 %15
%7 = OpVariable %_ptr_Private__arr_Normals_uint_1 Private %14
%20 = OpTypeFunction %v4float
%int = OpTypeInt 32 1
%zero = OpConstant %int 0
%_ptr_Private_v3float = OpTypePointer Private %v3float
%uint_0 = OpConstant %uint 0
%void = OpTypeVoid
%31 = OpTypeFunction %void
%main_inner = OpFunction %v4float None %20
%21 = OpLabel
%24 = OpAccessChain %_ptr_Private_v3float %7 %zero %uint_0
%27 = OpLoad %v3float %24 None
%28 = OpCompositeConstruct %v4float %27 %float_1
OpReturnValue %28
OpFunctionEnd
%main = OpFunction %void None %31
%32 = OpLabel
%33 = OpFunctionCall %v4float %main_inner
OpStore %main_position_Output %33 None
OpStore %main___point_size_Output %float_1 None
OpReturn
OpFunctionEnd