blob: bacae124289d0ca78d5429cb4ff9f95fd6a8e67a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 124
; Schema: 0
OpCapability Shader
%65 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %position_1_param_1 %uv_param_1 %normal_param_1 %gl_Position_1 %vUV_1_1 %vertex_point_size
OpName %position_1_param_1 "position_1_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_1 "position_1"
OpName %x_14_block "x_14_block"
OpMemberName %x_14_block 0 "inner"
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_1_param "position_1_param"
OpName %uv_param "uv_param"
OpName %normal_param "normal_param"
OpName %main "main"
OpDecorate %position_1_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 %x_14_block Block
OpMemberDecorate %x_14_block 0 Offset 0
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_1_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_1 = 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
%x_14_block = OpTypeStruct %LeftOver
%_ptr_Uniform_x_14_block = OpTypePointer Uniform %x_14_block
%x_14 = OpVariable %_ptr_Uniform_x_14_block 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
%39 = OpTypeFunction %void
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_ptr_Function_v3float = OpTypePointer Function %v3float
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%uint_1 = OpConstant %uint 1
%float_1 = OpConstant %float 1
%_ptr_Function_float = OpTypePointer Function %float
%uint_3 = OpConstant %uint 3
%int = OpTypeInt 32 1
%68 = OpConstantNull %int
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_4 = OpConstant %float 4
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
%float_n1 = OpConstant %float -1
%main_out = OpTypeStruct %v4float %v2float
%105 = OpTypeFunction %main_out %v3float %v2float %v3float
%main_1 = OpFunction %void None %39
%42 = OpLabel
%q = OpVariable %_ptr_Function_v4float Function %12
%p = OpVariable %_ptr_Function_v3float Function %21
%49 = OpAccessChain %_ptr_Private_float %position_1 %uint_0
%50 = OpLoad %float %49
%52 = OpAccessChain %_ptr_Private_float %position_1 %uint_1
%53 = OpLoad %float %52
%54 = OpAccessChain %_ptr_Private_float %position_1 %uint_2
%55 = OpLoad %float %54
%57 = OpCompositeConstruct %v4float %50 %53 %55 %float_1
OpStore %q %57
%58 = OpLoad %v4float %q
%59 = OpVectorShuffle %v3float %58 %58 0 1 2
OpStore %p %59
%61 = OpAccessChain %_ptr_Function_float %p %uint_0
%62 = OpAccessChain %_ptr_Function_float %p %uint_0
%63 = OpLoad %float %62
%70 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_0 %uint_3 %68 %uint_0
%71 = OpLoad %float %70
%72 = OpAccessChain %_ptr_Private_float %position_1 %uint_1
%73 = OpLoad %float %72
%74 = OpFMul %float %71 %73
%75 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_0 %uint_1
%76 = OpLoad %float %75
%77 = OpFAdd %float %74 %76
%64 = OpExtInst %float %65 Sin %77
%78 = OpFAdd %float %63 %64
OpStore %61 %78
%79 = OpAccessChain %_ptr_Function_float %p %uint_1
%80 = OpAccessChain %_ptr_Function_float %p %uint_1
%81 = OpLoad %float %80
%83 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_0 %uint_1
%84 = OpLoad %float %83
%86 = OpFAdd %float %84 %float_4
%82 = OpExtInst %float %65 Sin %86
%87 = OpFAdd %float %81 %82
OpStore %79 %87
%89 = OpAccessChain %_ptr_Uniform_mat4v4float %x_14 %uint_0 %uint_0
%90 = OpLoad %mat4v4float %89
%91 = OpAccessChain %_ptr_Function_float %p %uint_0
%92 = OpLoad %float %91
%93 = OpAccessChain %_ptr_Function_float %p %uint_1
%94 = OpLoad %float %93
%95 = OpAccessChain %_ptr_Function_float %p %uint_2
%96 = OpLoad %float %95
%97 = OpCompositeConstruct %v4float %92 %94 %96 %float_1
%98 = OpMatrixTimesVector %v4float %90 %97
OpStore %gl_Position %98
%99 = OpLoad %v2float %uv
OpStore %vUV %99
%100 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%101 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%102 = OpLoad %float %101
%104 = OpFMul %float %102 %float_n1
OpStore %100 %104
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %105
%position_1_param = OpFunctionParameter %v3float
%uv_param = OpFunctionParameter %v2float
%normal_param = OpFunctionParameter %v3float
%111 = OpLabel
OpStore %position_1 %position_1_param
OpStore %uv %uv_param
OpStore %normal %normal_param
%112 = OpFunctionCall %void %main_1
%113 = OpLoad %v4float %gl_Position
%114 = OpLoad %v2float %vUV
%115 = OpCompositeConstruct %main_out %113 %114
OpReturnValue %115
OpFunctionEnd
%main = OpFunction %void None %39
%117 = OpLabel
%119 = OpLoad %v3float %position_1_param_1
%120 = OpLoad %v2float %uv_param_1
%121 = OpLoad %v3float %normal_param_1
%118 = OpFunctionCall %main_out %main_inner %119 %120 %121
%122 = OpCompositeExtract %v4float %118 0
OpStore %gl_Position_1 %122
%123 = OpCompositeExtract %v2float %118 1
OpStore %vUV_1_1 %123
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd