| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 123 |
| ; Schema: 0 |
| OpCapability Shader |
| %75 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %main "main" %main_loc0_Input %main_loc2_Input %main_loc1_Input %main_position_Output %main_loc0_Output %main___point_size_Output |
| OpName %position_1 "position_1" |
| OpMemberName %LeftOver 0 "worldViewProjection" |
| OpMemberName %LeftOver 1 "time" |
| OpMemberName %LeftOver 2 "test2" |
| OpMemberName %strided_arr 0 "el" |
| OpName %strided_arr "strided_arr" |
| OpMemberName %LeftOver 3 "test" |
| OpName %LeftOver "LeftOver" |
| OpMemberName %x_14_block 0 "inner" |
| OpName %x_14_block "x_14_block" |
| OpName %vUV "vUV" |
| OpName %uv "uv" |
| OpName %normal "normal" |
| OpName %gl_Position "gl_Position" |
| OpName %main_loc0_Input "main_loc0_Input" |
| OpName %main_loc2_Input "main_loc2_Input" |
| OpName %main_loc1_Input "main_loc1_Input" |
| OpName %main_position_Output "main_position_Output" |
| OpName %main_loc0_Output "main_loc0_Output" |
| OpName %main___point_size_Output "main___point_size_Output" |
| OpName %main_1 "main_1" |
| OpName %q "q" |
| OpName %p "p" |
| OpName %main_inner "main_inner" |
| OpMemberName %main_out 0 "gl_Position" |
| OpMemberName %main_out 1 "vUV_1" |
| OpName %main_out "main_out" |
| OpName %position_1_param "position_1_param" |
| OpName %uv_param "uv_param" |
| OpName %normal_param "normal_param" |
| OpName %main "main" |
| OpMemberDecorate %LeftOver 0 Offset 0 |
| OpMemberDecorate %LeftOver 0 ColMajor |
| OpMemberDecorate %LeftOver 0 MatrixStride 16 |
| OpMemberDecorate %LeftOver 1 Offset 64 |
| OpDecorate %_arr_mat4v4float_uint_2 ArrayStride 64 |
| OpMemberDecorate %LeftOver 2 Offset 80 |
| OpMemberDecorate %LeftOver 2 ColMajor |
| OpMemberDecorate %LeftOver 2 MatrixStride 16 |
| OpMemberDecorate %strided_arr 0 Offset 0 |
| OpDecorate %_arr_strided_arr_uint_4 ArrayStride 16 |
| OpMemberDecorate %LeftOver 3 Offset 208 |
| OpMemberDecorate %x_14_block 0 Offset 0 |
| OpDecorate %x_14_block Block |
| OpDecorate %6 DescriptorSet 2 |
| OpDecorate %6 Binding 2 |
| OpDecorate %6 NonWritable |
| OpDecorate %main_loc0_Input Location 0 |
| OpDecorate %main_loc2_Input Location 2 |
| OpDecorate %main_loc1_Input Location 1 |
| OpDecorate %main_position_Output BuiltIn Position |
| OpDecorate %main_loc0_Output Location 0 |
| OpDecorate %main___point_size_Output BuiltIn PointSize |
| OpMemberDecorate %main_out 0 Offset 0 |
| OpMemberDecorate %main_out 1 Offset 16 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %_ptr_Private_v3float = OpTypePointer Private %v3float |
| %5 = OpConstantNull %v3float |
| %position_1 = OpVariable %_ptr_Private_v3float Private %5 |
| %v4float = OpTypeVector %float 4 |
| %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 |
| %x_14_block = OpTypeStruct %LeftOver |
| %_ptr_Uniform_x_14_block = OpTypePointer Uniform %x_14_block |
| %6 = OpVariable %_ptr_Uniform_x_14_block Uniform |
| %v2float = OpTypeVector %float 2 |
| %_ptr_Private_v2float = OpTypePointer Private %v2float |
| %21 = OpConstantNull %v2float |
| %vUV = OpVariable %_ptr_Private_v2float Private %21 |
| %uv = OpVariable %_ptr_Private_v2float Private %21 |
| %normal = OpVariable %_ptr_Private_v3float Private %5 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %26 = OpConstantNull %v4float |
| %gl_Position = OpVariable %_ptr_Private_v4float Private %26 |
| %_ptr_Input_v3float = OpTypePointer Input %v3float |
| %main_loc0_Input = OpVariable %_ptr_Input_v3float Input |
| %_ptr_Input_v2float = OpTypePointer Input %v2float |
| %main_loc2_Input = OpVariable %_ptr_Input_v2float Input |
| %main_loc1_Input = OpVariable %_ptr_Input_v3float Input |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %_ptr_Output_v2float = OpTypePointer Output %v2float |
| %main_loc0_Output = OpVariable %_ptr_Output_v2float Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %void = OpTypeVoid |
| %40 = OpTypeFunction %void |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %_ptr_Private_float = OpTypePointer Private %float |
| %uint_0 = OpConstant %uint 0 |
| %uint_1 = OpConstant %uint 1 |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %uint_3 = OpConstant %uint 3 |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %float_4 = OpConstant %float 4 |
| %_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float |
| %float_n1 = OpConstant %float -1 |
| %main_out = OpTypeStruct %v4float %v2float |
| %109 = OpTypeFunction %main_out %v3float %v2float %v3float |
| %main_1 = OpFunction %void None %40 |
| %41 = OpLabel |
| %q = OpVariable %_ptr_Function_v4float Function %26 |
| %p = OpVariable %_ptr_Function_v3float Function %5 |
| %46 = OpAccessChain %_ptr_Private_float %position_1 %uint_0 |
| %49 = OpLoad %float %46 None |
| %50 = OpAccessChain %_ptr_Private_float %position_1 %uint_1 |
| %52 = OpLoad %float %50 None |
| %53 = OpAccessChain %_ptr_Private_float %position_1 %uint_2 |
| %54 = OpLoad %float %53 None |
| %55 = OpCompositeConstruct %v4float %49 %52 %54 %float_1 |
| OpStore %q %55 None |
| %57 = OpLoad %v4float %q None |
| %58 = OpVectorShuffle %v3float %57 %57 0 1 2 |
| OpStore %p %58 None |
| %59 = OpAccessChain %_ptr_Function_float %p %uint_0 |
| %61 = OpLoad %float %59 None |
| %62 = OpAccessChain %_ptr_Uniform_float %6 %uint_0 %uint_3 %int_0 %uint_0 |
| %67 = OpLoad %float %62 None |
| %68 = OpAccessChain %_ptr_Private_float %position_1 %uint_1 |
| %69 = OpLoad %float %68 None |
| %70 = OpFMul %float %67 %69 |
| %71 = OpAccessChain %_ptr_Uniform_float %6 %uint_0 %uint_1 |
| %72 = OpLoad %float %71 None |
| %73 = OpFAdd %float %70 %72 |
| %74 = OpExtInst %float %75 Sin %73 |
| %76 = OpFAdd %float %61 %74 |
| %77 = OpAccessChain %_ptr_Function_float %p %uint_0 |
| OpStore %77 %76 None |
| %78 = OpAccessChain %_ptr_Function_float %p %uint_1 |
| %79 = OpLoad %float %78 None |
| %80 = OpAccessChain %_ptr_Uniform_float %6 %uint_0 %uint_1 |
| %81 = OpLoad %float %80 None |
| %82 = OpFAdd %float %81 %float_4 |
| %84 = OpExtInst %float %75 Sin %82 |
| %85 = OpFAdd %float %79 %84 |
| %86 = OpAccessChain %_ptr_Function_float %p %uint_1 |
| OpStore %86 %85 None |
| %87 = OpAccessChain %_ptr_Uniform_mat4v4float %6 %uint_0 %uint_0 |
| %89 = OpLoad %mat4v4float %87 None |
| %90 = OpAccessChain %_ptr_Function_float %p %uint_0 |
| %91 = OpLoad %float %90 None |
| %92 = OpAccessChain %_ptr_Function_float %p %uint_1 |
| %93 = OpLoad %float %92 None |
| %94 = OpAccessChain %_ptr_Function_float %p %uint_2 |
| %95 = OpLoad %float %94 None |
| %96 = OpCompositeConstruct %v4float %91 %93 %95 %float_1 |
| %97 = OpMatrixTimesVector %v4float %89 %96 |
| OpStore %gl_Position %97 None |
| %98 = OpLoad %v2float %uv None |
| OpStore %vUV %98 None |
| %99 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1 |
| %100 = OpLoad %float %99 None |
| %101 = OpFMul %float %100 %float_n1 |
| %103 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1 |
| OpStore %103 %101 None |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %main_out None %109 |
| %position_1_param = OpFunctionParameter %v3float |
| %uv_param = OpFunctionParameter %v2float |
| %normal_param = OpFunctionParameter %v3float |
| %110 = OpLabel |
| OpStore %position_1 %position_1_param None |
| OpStore %uv %uv_param None |
| OpStore %normal %normal_param None |
| %111 = OpFunctionCall %void %main_1 |
| %112 = OpLoad %v4float %gl_Position None |
| %113 = OpLoad %v2float %vUV None |
| %114 = OpCompositeConstruct %main_out %112 %113 |
| OpReturnValue %114 |
| OpFunctionEnd |
| %main = OpFunction %void None %40 |
| %116 = OpLabel |
| %117 = OpLoad %v3float %main_loc0_Input None |
| %118 = OpLoad %v2float %main_loc2_Input None |
| %119 = OpLoad %v3float %main_loc1_Input None |
| %120 = OpFunctionCall %main_out %main_inner %117 %118 %119 |
| %121 = OpCompositeExtract %v4float %120 0 |
| OpStore %main_position_Output %121 None |
| %122 = OpCompositeExtract %v2float %120 1 |
| OpStore %main_loc0_Output %122 None |
| OpStore %main___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |