blob: aef2a82bc497b2c1cb451ce16e211b8b68440585 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 119
; Schema: 0
OpCapability Shader
%74 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %tint_pointsize %tint_symbol %tint_symbol_1 %tint_symbol_2 %tint_symbol_4 %tint_symbol_5
OpName %tint_pointsize "tint_pointsize"
OpName %position "position"
OpName %LeftOver "LeftOver"
OpMemberName %LeftOver 0 "worldViewProjection"
OpMemberName %LeftOver 1 "time"
OpMemberName %LeftOver 2 "test2"
OpMemberName %LeftOver 3 "test"
OpName %x_14 "x_14"
OpName %vUV "vUV"
OpName %uv "uv"
OpName %normal "normal"
OpName %gl_Position "gl_Position"
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol_4 "tint_symbol_4"
OpName %tint_symbol_5 "tint_symbol_5"
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 %tint_symbol_6 "tint_symbol_6"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %main "main"
OpDecorate %tint_pointsize 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
OpDecorate %_arr_float_uint_4 ArrayStride 16
OpDecorate %x_14 NonWritable
OpDecorate %x_14 DescriptorSet 2
OpDecorate %x_14 Binding 2
OpDecorate %tint_symbol Location 0
OpDecorate %tint_symbol_1 Location 2
OpDecorate %tint_symbol_2 Location 1
OpDecorate %tint_symbol_4 BuiltIn Position
OpDecorate %tint_symbol_5 Location 0
OpMemberDecorate %main_out 0 Offset 0
OpMemberDecorate %main_out 1 Offset 16
%float = OpTypeFloat 32
%_ptr_Output_float = OpTypePointer Output %float
%4 = OpConstantNull %float
%tint_pointsize = OpVariable %_ptr_Output_float Output %4
%v3float = OpTypeVector %float 3
%_ptr_Private_v3float = OpTypePointer Private %v3float
%8 = OpConstantNull %v3float
%position = OpVariable %_ptr_Private_v3float Private %8
%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
%uint_4 = OpConstant %uint 4
%_arr_float_uint_4 = OpTypeArray %float %uint_4
%LeftOver = OpTypeStruct %mat4v4float %float %_arr_mat4v4float_uint_2 %_arr_float_uint_4
%_ptr_Uniform_LeftOver = OpTypePointer Uniform %LeftOver
%x_14 = OpVariable %_ptr_Uniform_LeftOver Uniform
%v2float = OpTypeVector %float 2
%_ptr_Private_v2float = OpTypePointer Private %v2float
%22 = OpConstantNull %v2float
%vUV = OpVariable %_ptr_Private_v2float Private %22
%uv = OpVariable %_ptr_Private_v2float Private %22
%normal = OpVariable %_ptr_Private_v3float Private %8
%_ptr_Private_v4float = OpTypePointer Private %v4float
%27 = OpConstantNull %v4float
%gl_Position = OpVariable %_ptr_Private_v4float Private %27
%_ptr_Input_v3float = OpTypePointer Input %v3float
%tint_symbol = OpVariable %_ptr_Input_v3float Input
%_ptr_Input_v2float = OpTypePointer Input %v2float
%tint_symbol_1 = OpVariable %_ptr_Input_v2float Input
%tint_symbol_2 = OpVariable %_ptr_Input_v3float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_4 = OpVariable %_ptr_Output_v4float Output %27
%_ptr_Output_v2float = OpTypePointer Output %v2float
%tint_symbol_5 = OpVariable %_ptr_Output_v2float Output %22
%void = OpTypeVoid
%37 = 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
%102 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %37
%40 = OpLabel
%q = OpVariable %_ptr_Function_v4float Function %27
%p = OpVariable %_ptr_Function_v3float Function %8
%45 = OpLoad %v3float %position
%46 = OpCompositeExtract %float %45 0
%47 = OpCompositeExtract %float %45 1
%48 = OpCompositeExtract %float %45 2
%50 = OpCompositeConstruct %v4float %46 %47 %48 %float_1
OpStore %q %50
%51 = OpLoad %v4float %q
%52 = OpCompositeExtract %float %51 0
%53 = OpCompositeExtract %float %51 1
%54 = OpCompositeExtract %float %51 2
%55 = OpCompositeConstruct %v3float %52 %53 %54
OpStore %p %55
%58 = OpAccessChain %_ptr_Function_float %p %uint_0
%59 = OpLoad %float %58
%64 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_3 %int_0
%65 = OpLoad %float %64
%68 = OpAccessChain %_ptr_Private_float %position %uint_1
%69 = OpLoad %float %68
%70 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_1
%71 = OpLoad %float %70
%72 = OpAccessChain %_ptr_Function_float %p %uint_0
%75 = OpFMul %float %65 %69
%76 = OpFAdd %float %75 %71
%73 = OpExtInst %float %74 Sin %76
%77 = OpFAdd %float %59 %73
OpStore %72 %77
%78 = OpAccessChain %_ptr_Function_float %p %uint_1
%79 = OpLoad %float %78
%80 = OpAccessChain %_ptr_Uniform_float %x_14 %uint_1
%81 = OpLoad %float %80
%82 = OpAccessChain %_ptr_Function_float %p %uint_1
%85 = OpFAdd %float %81 %float_4
%83 = OpExtInst %float %74 Sin %85
%86 = OpFAdd %float %79 %83
OpStore %82 %86
%88 = OpAccessChain %_ptr_Uniform_mat4v4float %x_14 %uint_0
%89 = OpLoad %mat4v4float %88
%90 = OpLoad %v3float %p
%91 = OpCompositeExtract %float %90 0
%92 = OpCompositeExtract %float %90 1
%93 = OpCompositeExtract %float %90 2
%94 = OpCompositeConstruct %v4float %91 %92 %93 %float_1
%95 = OpMatrixTimesVector %v4float %89 %94
OpStore %gl_Position %95
%96 = OpLoad %v2float %uv
OpStore %vUV %96
%97 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%98 = OpLoad %float %97
%99 = OpAccessChain %_ptr_Private_float %gl_Position %uint_1
%101 = OpFMul %float %98 %float_n1
OpStore %99 %101
OpReturn
OpFunctionEnd
%tint_symbol_6 = OpFunction %void None %102
%tint_symbol_3 = OpFunctionParameter %main_out
%106 = OpLabel
%107 = OpCompositeExtract %v4float %tint_symbol_3 0
OpStore %tint_symbol_4 %107
%108 = OpCompositeExtract %v2float %tint_symbol_3 1
OpStore %tint_symbol_5 %108
OpReturn
OpFunctionEnd
%main = OpFunction %void None %37
%110 = OpLabel
OpStore %tint_pointsize %float_1
%111 = OpLoad %v3float %tint_symbol
OpStore %position %111
%112 = OpLoad %v2float %tint_symbol_1
OpStore %uv %112
%113 = OpLoad %v3float %tint_symbol_2
OpStore %normal %113
%114 = OpFunctionCall %void %main_1
%116 = OpLoad %v4float %gl_Position
%117 = OpLoad %v2float %vUV
%118 = OpCompositeConstruct %main_out %116 %117
%115 = OpFunctionCall %void %tint_symbol_6 %118
OpReturn
OpFunctionEnd