| ; | |
| ; vtx_main | |
| ; | |
| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 77 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Vertex %vtx_main "vtx_main" %vtx_main_loc0_Input %vtx_main_loc1_Input %vtx_main_loc0_Output %vtx_main_position_Output %vtx_main___point_size_Output | |
| OpMemberName %uniforms_block_tint_explicit_layout 0 "inner" | |
| OpName %uniforms_block_tint_explicit_layout "uniforms_block_tint_explicit_layout" | |
| OpName %vtx_main_loc0_Input "vtx_main_loc0_Input" | |
| OpName %vtx_main_loc1_Input "vtx_main_loc1_Input" | |
| OpName %vtx_main_loc0_Output "vtx_main_loc0_Output" | |
| OpName %vtx_main_position_Output "vtx_main_position_Output" | |
| OpName %vtx_main___point_size_Output "vtx_main___point_size_Output" | |
| OpName %vtx_main_inner "vtx_main_inner" | |
| OpMemberName %VertexOutput 0 "vtxFragColor" | |
| OpMemberName %VertexOutput 1 "Position" | |
| OpName %VertexOutput "VertexOutput" | |
| OpMemberName %VertexInput 0 "cur_position" | |
| OpMemberName %VertexInput 1 "color" | |
| OpName %VertexInput "VertexInput" | |
| OpName %input "input" | |
| OpName %output "output" | |
| OpName %start_byte_offset "start_byte_offset" | |
| OpName %vtx_main "vtx_main" | |
| OpDecorate %_arr_v4uint_uint_4 ArrayStride 16 | |
| OpMemberDecorate %uniforms_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %uniforms_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 NonWritable | |
| OpDecorate %vtx_main_loc0_Input Location 0 | |
| OpDecorate %vtx_main_loc1_Input Location 1 | |
| OpDecorate %vtx_main_loc0_Output Location 0 | |
| OpDecorate %vtx_main_position_Output BuiltIn Position | |
| OpDecorate %vtx_main___point_size_Output BuiltIn PointSize | |
| %uint = OpTypeInt 32 0 | |
| %v4uint = OpTypeVector %uint 4 | |
| %uint_4 = OpConstant %uint 4 | |
| %_arr_v4uint_uint_4 = OpTypeArray %v4uint %uint_4 | |
| %uniforms_block_tint_explicit_layout = OpTypeStruct %_arr_v4uint_uint_4 | |
| %_ptr_Uniform_uniforms_block_tint_explicit_layout = OpTypePointer Uniform %uniforms_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_Uniform_uniforms_block_tint_explicit_layout Uniform | |
| %float = OpTypeFloat 32 | |
| %v4float = OpTypeVector %float 4 | |
| %_ptr_Input_v4float = OpTypePointer Input %v4float | |
| %vtx_main_loc0_Input = OpVariable %_ptr_Input_v4float Input | |
| %vtx_main_loc1_Input = OpVariable %_ptr_Input_v4float Input | |
| %_ptr_Output_v4float = OpTypePointer Output %v4float | |
| %vtx_main_loc0_Output = OpVariable %_ptr_Output_v4float Output | |
| %vtx_main_position_Output = OpVariable %_ptr_Output_v4float Output | |
| %_ptr_Output_float = OpTypePointer Output %float | |
| %vtx_main___point_size_Output = OpVariable %_ptr_Output_float Output | |
| %VertexOutput = OpTypeStruct %v4float %v4float | |
| %VertexInput = OpTypeStruct %v4float %v4float | |
| %22 = OpTypeFunction %VertexOutput %VertexInput | |
| %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput | |
| %26 = OpConstantNull %VertexOutput | |
| %_ptr_Function_v4float = OpTypePointer Function %v4float | |
| %uint_1 = OpConstant %uint 1 | |
| %mat4v4float = OpTypeMatrix %v4float 4 | |
| %uint_0 = OpConstant %uint 0 | |
| %40 = OpTypeFunction %mat4v4float %uint | |
| %uint_16 = OpConstant %uint 16 | |
| %_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint | |
| %uint_32 = OpConstant %uint 32 | |
| %uint_48 = OpConstant %uint 48 | |
| %void = OpTypeVoid | |
| %68 = OpTypeFunction %void | |
| %float_1 = OpConstant %float 1 | |
| %vtx_main_inner = OpFunction %VertexOutput None %22 | |
| %input = OpFunctionParameter %VertexInput | |
| %23 = OpLabel | |
| %output = OpVariable %_ptr_Function_VertexOutput Function %26 | |
| %27 = OpAccessChain %_ptr_Function_v4float %output %uint_1 | |
| %30 = OpFunctionCall %mat4v4float %32 %uint_0 | |
| %34 = OpCompositeExtract %v4float %input 0 | |
| %35 = OpMatrixTimesVector %v4float %30 %34 | |
| OpStore %27 %35 None | |
| %36 = OpAccessChain %_ptr_Function_v4float %output %uint_0 | |
| %37 = OpCompositeExtract %v4float %input 1 | |
| OpStore %36 %37 None | |
| %38 = OpLoad %VertexOutput %output None | |
| OpReturnValue %38 | |
| OpFunctionEnd | |
| %32 = OpFunction %mat4v4float None %40 | |
| %start_byte_offset = OpFunctionParameter %uint | |
| %41 = OpLabel | |
| %42 = OpUDiv %uint %start_byte_offset %uint_16 | |
| %44 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %42 | |
| %46 = OpLoad %v4uint %44 None | |
| %47 = OpBitcast %v4float %46 | |
| %48 = OpIAdd %uint %uint_16 %start_byte_offset | |
| %49 = OpUDiv %uint %48 %uint_16 | |
| %50 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %49 | |
| %51 = OpLoad %v4uint %50 None | |
| %52 = OpBitcast %v4float %51 | |
| %53 = OpIAdd %uint %uint_32 %start_byte_offset | |
| %55 = OpUDiv %uint %53 %uint_16 | |
| %56 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %55 | |
| %57 = OpLoad %v4uint %56 None | |
| %58 = OpBitcast %v4float %57 | |
| %59 = OpIAdd %uint %uint_48 %start_byte_offset | |
| %61 = OpUDiv %uint %59 %uint_16 | |
| %62 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %61 | |
| %63 = OpLoad %v4uint %62 None | |
| %64 = OpBitcast %v4float %63 | |
| %65 = OpCompositeConstruct %mat4v4float %47 %52 %58 %64 | |
| OpReturnValue %65 | |
| OpFunctionEnd | |
| %vtx_main = OpFunction %void None %68 | |
| %69 = OpLabel | |
| %70 = OpLoad %v4float %vtx_main_loc0_Input None | |
| %71 = OpLoad %v4float %vtx_main_loc1_Input None | |
| %72 = OpCompositeConstruct %VertexInput %70 %71 | |
| %73 = OpFunctionCall %VertexOutput %vtx_main_inner %72 | |
| %74 = OpCompositeExtract %v4float %73 0 | |
| OpStore %vtx_main_loc0_Output %74 None | |
| %75 = OpCompositeExtract %v4float %73 1 | |
| OpStore %vtx_main_position_Output %75 None | |
| OpStore %vtx_main___point_size_Output %float_1 None | |
| OpReturn | |
| OpFunctionEnd | |
| ; | |
| ; frag_main | |
| ; | |
| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 17 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %frag_main "frag_main" %frag_main_loc0_Input %frag_main_loc0_Output | |
| OpExecutionMode %frag_main OriginUpperLeft | |
| OpName %frag_main_loc0_Input "frag_main_loc0_Input" | |
| OpName %frag_main_loc0_Output "frag_main_loc0_Output" | |
| OpName %frag_main_inner "frag_main_inner" | |
| OpName %fragColor "fragColor" | |
| OpName %frag_main "frag_main" | |
| OpDecorate %frag_main_loc0_Input Location 0 | |
| OpDecorate %frag_main_loc0_Output Location 0 | |
| %float = OpTypeFloat 32 | |
| %v4float = OpTypeVector %float 4 | |
| %_ptr_Input_v4float = OpTypePointer Input %v4float | |
| %frag_main_loc0_Input = OpVariable %_ptr_Input_v4float Input | |
| %_ptr_Output_v4float = OpTypePointer Output %v4float | |
| %frag_main_loc0_Output = OpVariable %_ptr_Output_v4float Output | |
| %9 = OpTypeFunction %v4float %v4float | |
| %void = OpTypeVoid | |
| %13 = OpTypeFunction %void | |
| %frag_main_inner = OpFunction %v4float None %9 | |
| %fragColor = OpFunctionParameter %v4float | |
| %10 = OpLabel | |
| OpReturnValue %fragColor | |
| OpFunctionEnd | |
| %frag_main = OpFunction %void None %13 | |
| %14 = OpLabel | |
| %15 = OpLoad %v4float %frag_main_loc0_Input None | |
| %16 = OpFunctionCall %v4float %frag_main_inner %15 | |
| OpStore %frag_main_loc0_Output %16 None | |
| OpReturn | |
| OpFunctionEnd |