| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 76 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %main "main" %gl_VertexIndex_1 %value %vertex_point_size |
| OpName %gl_VertexIndex_1 "gl_VertexIndex_1" |
| OpName %value "value" |
| OpName %vertex_point_size "vertex_point_size" |
| OpName %vertexUniformBuffer1_std140 "vertexUniformBuffer1_std140" |
| OpMemberName %vertexUniformBuffer1_std140 0 "transform1_0" |
| OpMemberName %vertexUniformBuffer1_std140 1 "transform1_1" |
| OpName %x_20 "x_20" |
| OpName %vertexUniformBuffer2_std140 "vertexUniformBuffer2_std140" |
| OpMemberName %vertexUniformBuffer2_std140 0 "transform2_0" |
| OpMemberName %vertexUniformBuffer2_std140 1 "transform2_1" |
| OpName %x_26 "x_26" |
| OpName %load_x_20_transform1 "load_x_20_transform1" |
| OpName %load_x_26_transform2 "load_x_26_transform2" |
| OpName %main_inner "main_inner" |
| OpName %gl_VertexIndex "gl_VertexIndex" |
| OpName %indexable "indexable" |
| OpName %main "main" |
| OpDecorate %gl_VertexIndex_1 BuiltIn VertexIndex |
| OpDecorate %value BuiltIn Position |
| OpDecorate %vertex_point_size BuiltIn PointSize |
| OpDecorate %vertexUniformBuffer1_std140 Block |
| OpMemberDecorate %vertexUniformBuffer1_std140 0 Offset 0 |
| OpMemberDecorate %vertexUniformBuffer1_std140 1 Offset 8 |
| OpDecorate %x_20 NonWritable |
| OpDecorate %x_20 DescriptorSet 0 |
| OpDecorate %x_20 Binding 0 |
| OpDecorate %vertexUniformBuffer2_std140 Block |
| OpMemberDecorate %vertexUniformBuffer2_std140 0 Offset 0 |
| OpMemberDecorate %vertexUniformBuffer2_std140 1 Offset 8 |
| OpDecorate %x_26 NonWritable |
| OpDecorate %x_26 DescriptorSet 1 |
| OpDecorate %x_26 Binding 0 |
| OpDecorate %_arr_v2float_uint_3 ArrayStride 8 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %gl_VertexIndex_1 = OpVariable %_ptr_Input_uint Input |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %8 = OpConstantNull %v4float |
| %value = OpVariable %_ptr_Output_v4float Output %8 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %11 = OpConstantNull %float |
| %vertex_point_size = OpVariable %_ptr_Output_float Output %11 |
| %v2float = OpTypeVector %float 2 |
| %vertexUniformBuffer1_std140 = OpTypeStruct %v2float %v2float |
| %_ptr_Uniform_vertexUniformBuffer1_std140 = OpTypePointer Uniform %vertexUniformBuffer1_std140 |
| %x_20 = OpVariable %_ptr_Uniform_vertexUniformBuffer1_std140 Uniform |
| %vertexUniformBuffer2_std140 = OpTypeStruct %v2float %v2float |
| %_ptr_Uniform_vertexUniformBuffer2_std140 = OpTypePointer Uniform %vertexUniformBuffer2_std140 |
| %x_26 = OpVariable %_ptr_Uniform_vertexUniformBuffer2_std140 Uniform |
| %mat2v2float = OpTypeMatrix %v2float 2 |
| %19 = OpTypeFunction %mat2v2float |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| %uint_1 = OpConstant %uint 1 |
| %38 = OpTypeFunction %v4float %uint |
| %uint_3 = OpConstant %uint 3 |
| %_arr_v2float_uint_3 = OpTypeArray %v2float %uint_3 |
| %_ptr_Function__arr_v2float_uint_3 = OpTypePointer Function %_arr_v2float_uint_3 |
| %46 = OpConstantNull %_arr_v2float_uint_3 |
| %float_n1 = OpConstant %float -1 |
| %float_1 = OpConstant %float 1 |
| %51 = OpConstantComposite %v2float %float_n1 %float_1 |
| %52 = OpConstantComposite %v2float %float_1 %float_1 |
| %53 = OpConstantComposite %v2float %float_n1 %float_n1 |
| %54 = OpConstantComposite %_arr_v2float_uint_3 %51 %52 %53 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %58 = OpConstantNull %uint |
| %void = OpTypeVoid |
| %70 = OpTypeFunction %void |
| %load_x_20_transform1 = OpFunction %mat2v2float None %19 |
| %22 = OpLabel |
| %25 = OpAccessChain %_ptr_Uniform_v2float %x_20 %uint_0 |
| %26 = OpLoad %v2float %25 |
| %28 = OpAccessChain %_ptr_Uniform_v2float %x_20 %uint_1 |
| %29 = OpLoad %v2float %28 |
| %30 = OpCompositeConstruct %mat2v2float %26 %29 |
| OpReturnValue %30 |
| OpFunctionEnd |
| %load_x_26_transform2 = OpFunction %mat2v2float None %19 |
| %32 = OpLabel |
| %33 = OpAccessChain %_ptr_Uniform_v2float %x_26 %uint_0 |
| %34 = OpLoad %v2float %33 |
| %35 = OpAccessChain %_ptr_Uniform_v2float %x_26 %uint_1 |
| %36 = OpLoad %v2float %35 |
| %37 = OpCompositeConstruct %mat2v2float %34 %36 |
| OpReturnValue %37 |
| OpFunctionEnd |
| %main_inner = OpFunction %v4float None %38 |
| %gl_VertexIndex = OpFunctionParameter %uint |
| %41 = OpLabel |
| %indexable = OpVariable %_ptr_Function__arr_v2float_uint_3 Function %46 |
| %47 = OpFunctionCall %mat2v2float %load_x_20_transform1 |
| %48 = OpFunctionCall %mat2v2float %load_x_26_transform2 |
| OpStore %indexable %54 |
| %56 = OpAccessChain %_ptr_Function_v2float %indexable %gl_VertexIndex |
| %57 = OpLoad %v2float %56 |
| %59 = OpCompositeExtract %v2float %47 0 |
| %60 = OpCompositeExtract %v2float %48 0 |
| %61 = OpFAdd %v2float %59 %60 |
| %62 = OpCompositeExtract %v2float %47 1 |
| %63 = OpCompositeExtract %v2float %48 1 |
| %64 = OpFAdd %v2float %62 %63 |
| %65 = OpCompositeConstruct %mat2v2float %61 %64 |
| %66 = OpMatrixTimesVector %v2float %65 %57 |
| %67 = OpCompositeExtract %float %66 0 |
| %68 = OpCompositeExtract %float %66 1 |
| %69 = OpCompositeConstruct %v4float %67 %68 %11 %float_1 |
| OpReturnValue %69 |
| OpFunctionEnd |
| %main = OpFunction %void None %70 |
| %73 = OpLabel |
| %75 = OpLoad %uint %gl_VertexIndex_1 |
| %74 = OpFunctionCall %v4float %main_inner %75 |
| OpStore %value %74 |
| OpStore %vertex_point_size %float_1 |
| OpReturn |
| OpFunctionEnd |