blob: a9c083c530b0d0accff444f308a48cd83a705456 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 49
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %loc0_1 %loc1_1 %loc2_1 %loc3_1 %loc4_1 %loc5_1 %value %vertex_point_size
OpName %loc0_1 "loc0_1"
OpName %loc1_1 "loc1_1"
OpName %loc2_1 "loc2_1"
OpName %loc3_1 "loc3_1"
OpName %loc4_1 "loc4_1"
OpName %loc5_1 "loc5_1"
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %VertexInputs "VertexInputs"
OpMemberName %VertexInputs 0 "loc0"
OpMemberName %VertexInputs 1 "loc1"
OpMemberName %VertexInputs 2 "loc2"
OpMemberName %VertexInputs 3 "loc3"
OpMemberName %VertexInputs 4 "loc4"
OpMemberName %VertexInputs 5 "loc5"
OpName %main_inner "main_inner"
OpName %inputs "inputs"
OpName %main "main"
OpDecorate %loc0_1 Location 0
OpDecorate %loc1_1 Location 1
OpDecorate %loc2_1 Location 2
OpDecorate %loc3_1 Location 3
OpDecorate %loc4_1 Location 4
OpDecorate %loc5_1 Location 5
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %VertexInputs 0 Offset 0
OpMemberDecorate %VertexInputs 1 Offset 4
OpMemberDecorate %VertexInputs 2 Offset 8
OpMemberDecorate %VertexInputs 3 Offset 16
OpMemberDecorate %VertexInputs 4 Offset 32
OpMemberDecorate %VertexInputs 5 Offset 40
%int = OpTypeInt 32 1
%_ptr_Input_int = OpTypePointer Input %int
%loc0_1 = OpVariable %_ptr_Input_int Input
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%loc1_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%_ptr_Input_float = OpTypePointer Input %float
%loc2_1 = OpVariable %_ptr_Input_float Input
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%loc3_1 = OpVariable %_ptr_Input_v4float Input
%half = OpTypeFloat 16
%_ptr_Input_half = OpTypePointer Input %half
%loc4_1 = OpVariable %_ptr_Input_half Input
%v3half = OpTypeVector %half 3
%_ptr_Input_v3half = OpTypePointer Input %v3half
%loc5_1 = OpVariable %_ptr_Input_v3half Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%21 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %21
%_ptr_Output_float = OpTypePointer Output %float
%24 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %24
%VertexInputs = OpTypeStruct %int %uint %float %v4float %half %v3half
%25 = OpTypeFunction %v4float %VertexInputs
%void = OpTypeVoid
%36 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%main_inner = OpFunction %v4float None %25
%inputs = OpFunctionParameter %VertexInputs
%29 = OpLabel
%30 = OpCompositeExtract %int %inputs 0
%31 = OpCompositeExtract %uint %inputs 1
%32 = OpCompositeExtract %float %inputs 2
%33 = OpCompositeExtract %v4float %inputs 3
%34 = OpCompositeExtract %half %inputs 4
%35 = OpCompositeExtract %v3half %inputs 5
OpReturnValue %21
OpFunctionEnd
%main = OpFunction %void None %36
%39 = OpLabel
%41 = OpLoad %int %loc0_1
%42 = OpLoad %uint %loc1_1
%43 = OpLoad %float %loc2_1
%44 = OpLoad %v4float %loc3_1
%45 = OpLoad %half %loc4_1
%46 = OpLoad %v3half %loc5_1
%47 = OpCompositeConstruct %VertexInputs %41 %42 %43 %44 %45 %46
%40 = OpFunctionCall %v4float %main_inner %47
OpStore %value %40
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd