blob: be526d1b09f67fba9f887b29548c9bed04bbeaa1 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 45
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vtx_main "vtx_main" %vtx_main_vertex_index_Input %vtx_main_position_Output %vtx_main___point_size_Output
OpEntryPoint Fragment %frag_main "frag_main" %frag_main_loc0_Output
OpExecutionMode %frag_main OriginUpperLeft
OpName %vtx_main_vertex_index_Input "vtx_main_vertex_index_Input"
OpName %vtx_main_position_Output "vtx_main_position_Output"
OpName %vtx_main___point_size_Output "vtx_main___point_size_Output"
OpName %frag_main_loc0_Output "frag_main_loc0_Output"
OpName %vtx_main_inner "vtx_main_inner"
OpName %VertexIndex "VertexIndex"
OpName %frag_main_inner "frag_main_inner"
OpName %vtx_main "vtx_main"
OpName %frag_main "frag_main"
OpDecorate %vtx_main_vertex_index_Input BuiltIn VertexIndex
OpDecorate %vtx_main_position_Output BuiltIn Position
OpDecorate %vtx_main___point_size_Output BuiltIn PointSize
OpDecorate %frag_main_loc0_Output Location 0
OpDecorate %_arr_v2float_uint_3 ArrayStride 8
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%vtx_main_vertex_index_Input = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%vtx_main_position_Output = OpVariable %_ptr_Output_v4float Output
%_ptr_Output_float = OpTypePointer Output %float
%vtx_main___point_size_Output = OpVariable %_ptr_Output_float Output
%frag_main_loc0_Output = OpVariable %_ptr_Output_v4float Output
%v2float = OpTypeVector %float 2
%uint_3 = OpConstant %uint 3
%_arr_v2float_uint_3 = OpTypeArray %v2float %uint_3
%_ptr_Private__arr_v2float_uint_3 = OpTypePointer Private %_arr_v2float_uint_3
%float_0 = OpConstant %float 0
%float_0_5 = OpConstant %float 0.5
%17 = OpConstantComposite %v2float %float_0 %float_0_5
%float_n0_5 = OpConstant %float -0.5
%20 = OpConstantComposite %v2float %float_n0_5 %float_n0_5
%22 = OpConstantComposite %v2float %float_0_5 %float_n0_5
%16 = OpConstantComposite %_arr_v2float_uint_3 %17 %20 %22
%11 = OpVariable %_ptr_Private__arr_v2float_uint_3 Private %16
%25 = OpTypeFunction %v4float %uint
%_ptr_Private_v2float = OpTypePointer Private %v2float
%float_1 = OpConstant %float 1
%33 = OpTypeFunction %v4float
%35 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%void = OpTypeVoid
%38 = OpTypeFunction %void
%vtx_main_inner = OpFunction %v4float None %25
%VertexIndex = OpFunctionParameter %uint
%26 = OpLabel
%27 = OpAccessChain %_ptr_Private_v2float %11 %VertexIndex
%29 = OpLoad %v2float %27 None
%30 = OpCompositeConstruct %v4float %29 %float_0 %float_1
OpReturnValue %30
OpFunctionEnd
%frag_main_inner = OpFunction %v4float None %33
%34 = OpLabel
OpReturnValue %35
OpFunctionEnd
%vtx_main = OpFunction %void None %38
%39 = OpLabel
%40 = OpLoad %uint %vtx_main_vertex_index_Input None
%41 = OpFunctionCall %v4float %vtx_main_inner %40
OpStore %vtx_main_position_Output %41 None
OpStore %vtx_main___point_size_Output %float_1 None
OpReturn
OpFunctionEnd
%frag_main = OpFunction %void None %38
%43 = OpLabel
%44 = OpFunctionCall %v4float %frag_main_inner
OpStore %frag_main_loc0_Output %44 None
OpReturn
OpFunctionEnd