140 lines
6.9 KiB
Plaintext
140 lines
6.9 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 88
|
|
; 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 %x_20_block_std140 "x_20_block_std140"
|
|
OpMemberName %x_20_block_std140 0 "inner"
|
|
OpName %vertexUniformBuffer1_std140 "vertexUniformBuffer1_std140"
|
|
OpMemberName %vertexUniformBuffer1_std140 0 "transform1_0"
|
|
OpMemberName %vertexUniformBuffer1_std140 1 "transform1_1"
|
|
OpName %x_20 "x_20"
|
|
OpName %x_26_block_std140 "x_26_block_std140"
|
|
OpMemberName %x_26_block_std140 0 "inner"
|
|
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_inner_transform1 "load_x_20_inner_transform1"
|
|
OpName %load_x_26_inner_transform2 "load_x_26_inner_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 %x_20_block_std140 Block
|
|
OpMemberDecorate %x_20_block_std140 0 Offset 0
|
|
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 %x_26_block_std140 Block
|
|
OpMemberDecorate %x_26_block_std140 0 Offset 0
|
|
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
|
|
%x_20_block_std140 = OpTypeStruct %vertexUniformBuffer1_std140
|
|
%_ptr_Uniform_x_20_block_std140 = OpTypePointer Uniform %x_20_block_std140
|
|
%x_20 = OpVariable %_ptr_Uniform_x_20_block_std140 Uniform
|
|
%vertexUniformBuffer2_std140 = OpTypeStruct %v2float %v2float
|
|
%x_26_block_std140 = OpTypeStruct %vertexUniformBuffer2_std140
|
|
%_ptr_Uniform_x_26_block_std140 = OpTypePointer Uniform %x_26_block_std140
|
|
%x_26 = OpVariable %_ptr_Uniform_x_26_block_std140 Uniform
|
|
%mat2v2float = OpTypeMatrix %v2float 2
|
|
%21 = OpTypeFunction %mat2v2float
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_Uniform_vertexUniformBuffer1_std140 = OpTypePointer Uniform %vertexUniformBuffer1_std140
|
|
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
|
|
%uint_1 = OpConstant %uint 1
|
|
%_ptr_Uniform_vertexUniformBuffer2_std140 = OpTypePointer Uniform %vertexUniformBuffer2_std140
|
|
%50 = 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
|
|
%58 = OpConstantNull %_arr_v2float_uint_3
|
|
%float_n1 = OpConstant %float -1
|
|
%float_1 = OpConstant %float 1
|
|
%63 = OpConstantComposite %v2float %float_n1 %float_1
|
|
%64 = OpConstantComposite %v2float %float_1 %float_1
|
|
%65 = OpConstantComposite %v2float %float_n1 %float_n1
|
|
%66 = OpConstantComposite %_arr_v2float_uint_3 %63 %64 %65
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
|
%70 = OpConstantNull %uint
|
|
%void = OpTypeVoid
|
|
%82 = OpTypeFunction %void
|
|
%load_x_20_inner_transform1 = OpFunction %mat2v2float None %21
|
|
%24 = OpLabel
|
|
%28 = OpAccessChain %_ptr_Uniform_vertexUniformBuffer1_std140 %x_20 %uint_0
|
|
%31 = OpAccessChain %_ptr_Uniform_v2float %28 %uint_0
|
|
%32 = OpLoad %v2float %31
|
|
%35 = OpAccessChain %_ptr_Uniform_v2float %28 %uint_1
|
|
%36 = OpLoad %v2float %35
|
|
%37 = OpCompositeConstruct %mat2v2float %32 %36
|
|
OpReturnValue %37
|
|
OpFunctionEnd
|
|
%load_x_26_inner_transform2 = OpFunction %mat2v2float None %21
|
|
%39 = OpLabel
|
|
%42 = OpAccessChain %_ptr_Uniform_vertexUniformBuffer2_std140 %x_26 %uint_0
|
|
%44 = OpAccessChain %_ptr_Uniform_v2float %42 %uint_0
|
|
%45 = OpLoad %v2float %44
|
|
%47 = OpAccessChain %_ptr_Uniform_v2float %42 %uint_1
|
|
%48 = OpLoad %v2float %47
|
|
%49 = OpCompositeConstruct %mat2v2float %45 %48
|
|
OpReturnValue %49
|
|
OpFunctionEnd
|
|
%main_inner = OpFunction %v4float None %50
|
|
%gl_VertexIndex = OpFunctionParameter %uint
|
|
%53 = OpLabel
|
|
%indexable = OpVariable %_ptr_Function__arr_v2float_uint_3 Function %58
|
|
%59 = OpFunctionCall %mat2v2float %load_x_20_inner_transform1
|
|
%60 = OpFunctionCall %mat2v2float %load_x_26_inner_transform2
|
|
OpStore %indexable %66
|
|
%68 = OpAccessChain %_ptr_Function_v2float %indexable %gl_VertexIndex
|
|
%69 = OpLoad %v2float %68
|
|
%71 = OpCompositeExtract %v2float %59 0
|
|
%72 = OpCompositeExtract %v2float %60 0
|
|
%73 = OpFAdd %v2float %71 %72
|
|
%74 = OpCompositeExtract %v2float %59 1
|
|
%75 = OpCompositeExtract %v2float %60 1
|
|
%76 = OpFAdd %v2float %74 %75
|
|
%77 = OpCompositeConstruct %mat2v2float %73 %76
|
|
%78 = OpMatrixTimesVector %v2float %77 %69
|
|
%79 = OpCompositeExtract %float %78 0
|
|
%80 = OpCompositeExtract %float %78 1
|
|
%81 = OpCompositeConstruct %v4float %79 %80 %11 %float_1
|
|
OpReturnValue %81
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %82
|
|
%85 = OpLabel
|
|
%87 = OpLoad %uint %gl_VertexIndex_1
|
|
%86 = OpFunctionCall %v4float %main_inner %87
|
|
OpStore %value %86
|
|
OpStore %vertex_point_size %float_1
|
|
OpReturn
|
|
OpFunctionEnd
|