blob: 10fa5cb52cd727562def0c0f1a5a5be3a4a0a803 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 123
; Schema: 0
OpCapability Shader
%76 = 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
%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
%64 = OpConstantNull %int
%_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
%104 = 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
%47 = OpLoad %v3float %position_1
%48 = OpCompositeExtract %float %47 0
%49 = OpCompositeExtract %float %47 1
%50 = OpCompositeExtract %float %47 2
%52 = OpCompositeConstruct %v4float %48 %49 %50 %float_1
OpStore %q %52
%53 = OpLoad %v4float %q
%54 = OpCompositeExtract %float %53 0
%55 = OpCompositeExtract %float %53 1
%56 = OpCompositeExtract %float %53 2
%57 = OpCompositeConstruct %v3float %54 %55 %56
OpStore %p %57
%60 = OpAccessChain %_ptr_Function_float %p %uint_0
%61 = OpLoad %float %60
%66 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_0 %uint_3 %64 %uint_0
%67 = OpLoad %float %66
%70 = OpAccessChain %_ptr_Private_float %position_1 %uint_1
%71 = OpLoad %float %70
%72 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_0 %uint_1
%73 = OpLoad %float %72
%74 = OpAccessChain %_ptr_Function_float %p %uint_0
%77 = OpFMul %float %67 %71
%78 = OpFAdd %float %77 %73
%75 = OpExtInst %float %76 Sin %78
%79 = OpFAdd %float %61 %75
OpStore %74 %79
%80 = OpAccessChain %_ptr_Function_float %p %uint_1
%81 = OpLoad %float %80
%82 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_0 %uint_1
%83 = OpLoad %float %82
%84 = OpAccessChain %_ptr_Function_float %p %uint_1
%87 = OpFAdd %float %83 %float_4
%85 = OpExtInst %float %76 Sin %87
%88 = OpFAdd %float %81 %85
OpStore %84 %88
%90 = OpAccessChain %_ptr_Uniform_mat4v4float %x_14 %uint_0 %uint_0
%91 = OpLoad %mat4v4float %90
%92 = OpLoad %v3float %p
%93 = OpCompositeExtract %float %92 0
%94 = OpCompositeExtract %float %92 1
%95 = OpCompositeExtract %float %92 2
%96 = OpCompositeConstruct %v4float %93 %94 %95 %float_1
%97 = OpMatrixTimesVector %v4float %91 %96
OpStore %gl_Position %97
%98 = OpLoad %v2float %uv
OpStore %vUV %98
%99 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%100 = OpLoad %float %99
%101 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%103 = OpFMul %float %100 %float_n1
OpStore %101 %103
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %104
%position_1_param = OpFunctionParameter %v3float
%uv_param = OpFunctionParameter %v2float
%normal_param = OpFunctionParameter %v3float
%110 = OpLabel
OpStore %position_1 %position_1_param
OpStore %uv %uv_param
OpStore %normal %normal_param
%111 = OpFunctionCall %void %main_1
%112 = OpLoad %v4float %gl_Position
%113 = OpLoad %v2float %vUV
%114 = OpCompositeConstruct %main_out %112 %113
OpReturnValue %114
OpFunctionEnd
%main = OpFunction %void None %39
%116 = OpLabel
%118 = OpLoad %v3float %position_1_param_1
%119 = OpLoad %v2float %uv_param_1
%120 = OpLoad %v3float %normal_param_1
%117 = OpFunctionCall %main_out %main_inner %118 %119 %120
%121 = OpCompositeExtract %v4float %117 0
OpStore %gl_Position_1 %121
%122 = OpCompositeExtract %v2float %117 1
OpStore %vUV_1_1 %122
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd