blob: 2e0dfa9e4200f154a8db3acceaed4fb4603dd452 [file] [edit]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 47
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vert_main "vert_main" %vert_main_loc1_Output %vert_main_loc2_Output %vert_main_position_Output %vert_main___point_size_Output
OpEntryPoint Fragment %frag_main "frag_main" %frag_main_loc1_Input %frag_main_loc2_Input %frag_main_position_Input
OpExecutionMode %frag_main OriginUpperLeft
OpName %vert_main_loc1_Output "vert_main_loc1_Output"
OpName %vert_main_loc2_Output "vert_main_loc2_Output"
OpName %vert_main_position_Output "vert_main_position_Output"
OpName %vert_main___point_size_Output "vert_main___point_size_Output"
OpName %frag_main_loc1_Input "frag_main_loc1_Input"
OpName %frag_main_loc2_Input "frag_main_loc2_Input"
OpName %frag_main_position_Input "frag_main_position_Input"
OpName %vert_main_inner "vert_main_inner"
OpMemberName %Interface 0 "col1"
OpMemberName %Interface 1 "col2"
OpMemberName %Interface 2 "pos"
OpName %Interface "Interface"
OpName %frag_main_inner "frag_main_inner"
OpName %colors "colors"
OpName %r "r"
OpName %g "g"
OpName %vert_main "vert_main"
OpName %frag_main "frag_main"
OpDecorate %vert_main_loc1_Output Location 1
OpDecorate %vert_main_loc2_Output Location 2
OpDecorate %vert_main_position_Output BuiltIn Position
OpDecorate %vert_main___point_size_Output BuiltIn PointSize
OpDecorate %frag_main_loc1_Input Location 1
OpDecorate %frag_main_loc2_Input Location 2
OpDecorate %frag_main_position_Input BuiltIn FragCoord
OpMemberDecorate %Interface 0 Offset 0
OpMemberDecorate %Interface 1 Offset 4
OpMemberDecorate %Interface 2 Offset 16
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%vert_main_loc1_Output = OpVariable %_ptr_Output_float Output
%half = OpTypeFloat 16
%_ptr_Output_half = OpTypePointer Output %half
%vert_main_loc2_Output = OpVariable %_ptr_Output_half Output
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%vert_main_position_Output = OpVariable %_ptr_Output_v4float Output
%vert_main___point_size_Output = OpVariable %_ptr_Output_float Output
%_ptr_Input_float = OpTypePointer Input %float
%frag_main_loc1_Input = OpVariable %_ptr_Input_float Input
%_ptr_Input_half = OpTypePointer Input %half
%frag_main_loc2_Input = OpVariable %_ptr_Input_half Input
%_ptr_Input_v4float = OpTypePointer Input %v4float
%frag_main_position_Input = OpVariable %_ptr_Input_v4float Input
%Interface = OpTypeStruct %float %half %v4float
%19 = OpTypeFunction %Interface
%float_0_400000006 = OpConstant %float 0.400000006
%half_0x1_33pn1 = OpConstant %half 0x1.33p-1
%24 = OpConstantNull %v4float
%21 = OpConstantComposite %Interface %float_0_400000006 %half_0x1_33pn1 %24
%void = OpTypeVoid
%28 = OpTypeFunction %void %Interface
%33 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%vert_main_inner = OpFunction %Interface None %19
%20 = OpLabel
OpReturnValue %21
OpFunctionEnd
%frag_main_inner = OpFunction %void None %28
%colors = OpFunctionParameter %Interface
%29 = OpLabel
%r = OpCompositeExtract %float %colors 0
%g = OpCompositeExtract %half %colors 1
OpReturn
OpFunctionEnd
%vert_main = OpFunction %void None %33
%34 = OpLabel
%35 = OpFunctionCall %Interface %vert_main_inner
%36 = OpCompositeExtract %float %35 0
OpStore %vert_main_loc1_Output %36 None
%37 = OpCompositeExtract %half %35 1
OpStore %vert_main_loc2_Output %37 None
%38 = OpCompositeExtract %v4float %35 2
OpStore %vert_main_position_Output %38 None
OpStore %vert_main___point_size_Output %float_1 None
OpReturn
OpFunctionEnd
%frag_main = OpFunction %void None %33
%41 = OpLabel
%42 = OpLoad %float %frag_main_loc1_Input None
%43 = OpLoad %half %frag_main_loc2_Input None
%44 = OpLoad %v4float %frag_main_position_Input None
%45 = OpCompositeConstruct %Interface %42 %43 %44
%46 = OpFunctionCall %void %frag_main_inner %45
OpReturn
OpFunctionEnd