blob: bb0fbce41fc54a4444113462d0ea197bc1dd3360 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 42
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %tint_pointsize %tint_symbol_1 %tint_symbol_2 %tint_symbol_3 %tint_symbol_4 %tint_symbol_5
OpName %tint_pointsize "tint_pointsize"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %tint_symbol_4 "tint_symbol_4"
OpName %tint_symbol_5 "tint_symbol_5"
OpName %VertexOutputs "VertexOutputs"
OpMemberName %VertexOutputs 0 "loc0"
OpMemberName %VertexOutputs 1 "loc1"
OpMemberName %VertexOutputs 2 "loc2"
OpMemberName %VertexOutputs 3 "loc3"
OpMemberName %VertexOutputs 4 "position"
OpName %tint_symbol_6 "tint_symbol_6"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %tint_pointsize BuiltIn PointSize
OpDecorate %tint_symbol_1 Location 0
OpDecorate %tint_symbol_1 Flat
OpDecorate %tint_symbol_2 Location 1
OpDecorate %tint_symbol_2 Flat
OpDecorate %tint_symbol_3 Location 2
OpDecorate %tint_symbol_4 Location 3
OpDecorate %tint_symbol_5 BuiltIn Position
OpMemberDecorate %VertexOutputs 0 Offset 0
OpMemberDecorate %VertexOutputs 1 Offset 4
OpMemberDecorate %VertexOutputs 2 Offset 8
OpMemberDecorate %VertexOutputs 3 Offset 16
OpMemberDecorate %VertexOutputs 4 Offset 32
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
%int = OpTypeInt 32 1
%_ptr_Output_int = OpTypePointer Output %int
%8 = OpConstantNull %int
%tint_symbol_1 = OpVariable %_ptr_Output_int Output %8
%uint = OpTypeInt 32 0
%_ptr_Output_uint = OpTypePointer Output %uint
%12 = OpConstantNull %uint
%tint_symbol_2 = OpVariable %_ptr_Output_uint Output %12
%tint_symbol_3 = OpVariable %_ptr_Output_float Output %4
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%17 = OpConstantNull %v4float
%tint_symbol_4 = OpVariable %_ptr_Output_v4float Output %17
%tint_symbol_5 = OpVariable %_ptr_Output_v4float Output %17
%void = OpTypeVoid
%VertexOutputs = OpTypeStruct %int %uint %float %v4float %v4float
%19 = OpTypeFunction %void %VertexOutputs
%30 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%40 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%41 = OpConstantComposite %VertexOutputs %int_1 %uint_1 %float_1 %40 %17
%tint_symbol_6 = OpFunction %void None %19
%tint_symbol = OpFunctionParameter %VertexOutputs
%24 = OpLabel
%25 = OpCompositeExtract %int %tint_symbol 0
OpStore %tint_symbol_1 %25
%26 = OpCompositeExtract %uint %tint_symbol 1
OpStore %tint_symbol_2 %26
%27 = OpCompositeExtract %float %tint_symbol 2
OpStore %tint_symbol_3 %27
%28 = OpCompositeExtract %v4float %tint_symbol 3
OpStore %tint_symbol_4 %28
%29 = OpCompositeExtract %v4float %tint_symbol 4
OpStore %tint_symbol_5 %29
OpReturn
OpFunctionEnd
%main = OpFunction %void None %30
%32 = OpLabel
OpStore %tint_pointsize %float_1
%34 = OpFunctionCall %void %tint_symbol_6 %41
OpReturn
OpFunctionEnd