blob: f157cd17514270050019a5db8a5cd14a4e3cab43 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 122
; Schema: 0
OpCapability Shader
%75 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %position_param_1 %uv_param_1 %normal_param_1 %gl_Position_1 %vUV_1_1 %vertex_point_size
OpName %position_param_1 "position_param_1"
OpName %uv_param_1 "uv_param_1"
OpName %normal_param_1 "normal_param_1"
OpName %gl_Position_1 "gl_Position_1"
OpName %vUV_1_1 "vUV_1_1"
OpName %vertex_point_size "vertex_point_size"
OpName %position "position"
OpName %LeftOver "LeftOver"
OpMemberName %LeftOver 0 "worldViewProjection"
OpMemberName %LeftOver 1 "time"
OpMemberName %LeftOver 2 "test2"
OpMemberName %LeftOver 3 "test"
OpName %strided_arr "strided_arr"
OpMemberName %strided_arr 0 "el"
OpName %x_14 "x_14"
OpName %vUV "vUV"
OpName %uv "uv"
OpName %normal "normal"
OpName %gl_Position "gl_Position"
OpName %main_1 "main_1"
OpName %q "q"
OpName %p "p"
OpName %main_out "main_out"
OpMemberName %main_out 0 "gl_Position"
OpMemberName %main_out 1 "vUV_1"
OpName %main_inner "main_inner"
OpName %position_param "position_param"
OpName %uv_param "uv_param"
OpName %normal_param "normal_param"
OpName %main "main"
OpDecorate %position_param_1 Location 0
OpDecorate %uv_param_1 Location 2
OpDecorate %normal_param_1 Location 1
OpDecorate %gl_Position_1 BuiltIn Position
OpDecorate %vUV_1_1 Location 0
OpDecorate %vertex_point_size BuiltIn PointSize
OpDecorate %LeftOver Block
OpMemberDecorate %LeftOver 0 Offset 0
OpMemberDecorate %LeftOver 0 ColMajor
OpMemberDecorate %LeftOver 0 MatrixStride 16
OpMemberDecorate %LeftOver 1 Offset 64
OpMemberDecorate %LeftOver 2 Offset 80
OpMemberDecorate %LeftOver 2 ColMajor
OpMemberDecorate %LeftOver 2 MatrixStride 16
OpDecorate %_arr_mat4v4float_uint_2 ArrayStride 64
OpMemberDecorate %LeftOver 3 Offset 208
OpMemberDecorate %strided_arr 0 Offset 0
OpDecorate %_arr_strided_arr_uint_4 ArrayStride 16
OpDecorate %x_14 NonWritable
OpDecorate %x_14 DescriptorSet 2
OpDecorate %x_14 Binding 2
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%_ptr_Input_v3float = OpTypePointer Input %v3float
%position_param_1 = OpVariable %_ptr_Input_v3float Input
%v2float = OpTypeVector %float 2
%_ptr_Input_v2float = OpTypePointer Input %v2float
%uv_param_1 = OpVariable %_ptr_Input_v2float Input
%normal_param_1 = OpVariable %_ptr_Input_v3float Input
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%12 = OpConstantNull %v4float
%gl_Position_1 = OpVariable %_ptr_Output_v4float Output %12
%_ptr_Output_v2float = OpTypePointer Output %v2float
%15 = OpConstantNull %v2float
%vUV_1_1 = OpVariable %_ptr_Output_v2float Output %15
%_ptr_Output_float = OpTypePointer Output %float
%18 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %18
%_ptr_Private_v3float = OpTypePointer Private %v3float
%21 = OpConstantNull %v3float
%position = OpVariable %_ptr_Private_v3float Private %21
%mat4v4float = OpTypeMatrix %v4float 4
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_mat4v4float_uint_2 = OpTypeArray %mat4v4float %uint_2
%strided_arr = OpTypeStruct %float
%uint_4 = OpConstant %uint 4
%_arr_strided_arr_uint_4 = OpTypeArray %strided_arr %uint_4
%LeftOver = OpTypeStruct %mat4v4float %float %_arr_mat4v4float_uint_2 %_arr_strided_arr_uint_4
%_ptr_Uniform_LeftOver = OpTypePointer Uniform %LeftOver
%x_14 = OpVariable %_ptr_Uniform_LeftOver Uniform
%_ptr_Private_v2float = OpTypePointer Private %v2float
%vUV = OpVariable %_ptr_Private_v2float Private %15
%uv = OpVariable %_ptr_Private_v2float Private %15
%normal = OpVariable %_ptr_Private_v3float Private %21
%_ptr_Private_v4float = OpTypePointer Private %v4float
%gl_Position = OpVariable %_ptr_Private_v4float Private %12
%void = OpTypeVoid
%38 = OpTypeFunction %void
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_ptr_Function_v3float = OpTypePointer Function %v3float
%float_1 = OpConstant %float 1
%uint_0 = OpConstant %uint 0
%_ptr_Function_float = OpTypePointer Function %float
%uint_3 = OpConstant %uint 3
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%uint_1 = OpConstant %uint 1
%_ptr_Private_float = OpTypePointer Private %float
%float_4 = OpConstant %float 4
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
%float_n1 = OpConstant %float -1
%main_out = OpTypeStruct %v4float %v2float
%103 = OpTypeFunction %main_out %v3float %v2float %v3float
%main_1 = OpFunction %void None %38
%41 = OpLabel
%q = OpVariable %_ptr_Function_v4float Function %12
%p = OpVariable %_ptr_Function_v3float Function %21
%46 = OpLoad %v3float %position
%47 = OpCompositeExtract %float %46 0
%48 = OpCompositeExtract %float %46 1
%49 = OpCompositeExtract %float %46 2
%51 = OpCompositeConstruct %v4float %47 %48 %49 %float_1
OpStore %q %51
%52 = OpLoad %v4float %q
%53 = OpCompositeExtract %float %52 0
%54 = OpCompositeExtract %float %52 1
%55 = OpCompositeExtract %float %52 2
%56 = OpCompositeConstruct %v3float %53 %54 %55
OpStore %p %56
%59 = OpAccessChain %_ptr_Function_float %p %uint_0
%60 = OpLoad %float %59
%65 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_3 %int_0 %uint_0
%66 = OpLoad %float %65
%69 = OpAccessChain %_ptr_Private_float %position %uint_1
%70 = OpLoad %float %69
%71 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_1
%72 = OpLoad %float %71
%73 = OpAccessChain %_ptr_Function_float %p %uint_0
%76 = OpFMul %float %66 %70
%77 = OpFAdd %float %76 %72
%74 = OpExtInst %float %75 Sin %77
%78 = OpFAdd %float %60 %74
OpStore %73 %78
%79 = OpAccessChain %_ptr_Function_float %p %uint_1
%80 = OpLoad %float %79
%81 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_1
%82 = OpLoad %float %81
%83 = OpAccessChain %_ptr_Function_float %p %uint_1
%86 = OpFAdd %float %82 %float_4
%84 = OpExtInst %float %75 Sin %86
%87 = OpFAdd %float %80 %84
OpStore %83 %87
%89 = OpAccessChain %_ptr_Uniform_mat4v4float %x_14 %uint_0
%90 = OpLoad %mat4v4float %89
%91 = OpLoad %v3float %p
%92 = OpCompositeExtract %float %91 0
%93 = OpCompositeExtract %float %91 1
%94 = OpCompositeExtract %float %91 2
%95 = OpCompositeConstruct %v4float %92 %93 %94 %float_1
%96 = OpMatrixTimesVector %v4float %90 %95
OpStore %gl_Position %96
%97 = OpLoad %v2float %uv
OpStore %vUV %97
%98 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%99 = OpLoad %float %98
%100 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%102 = OpFMul %float %99 %float_n1
OpStore %100 %102
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %103
%position_param = OpFunctionParameter %v3float
%uv_param = OpFunctionParameter %v2float
%normal_param = OpFunctionParameter %v3float
%109 = OpLabel
OpStore %position %position_param
OpStore %uv %uv_param
OpStore %normal %normal_param
%110 = OpFunctionCall %void %main_1
%111 = OpLoad %v4float %gl_Position
%112 = OpLoad %v2float %vUV
%113 = OpCompositeConstruct %main_out %111 %112
OpReturnValue %113
OpFunctionEnd
%main = OpFunction %void None %38
%115 = OpLabel
%117 = OpLoad %v3float %position_param_1
%118 = OpLoad %v2float %uv_param_1
%119 = OpLoad %v3float %normal_param_1
%116 = OpFunctionCall %main_out %main_inner %117 %118 %119
%120 = OpCompositeExtract %v4float %116 0
OpStore %gl_Position_1 %120
%121 = OpCompositeExtract %v2float %116 1
OpStore %vUV_1_1 %121
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd