dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 57 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability Float16 |
| 8 | OpCapability UniformAndStorageBuffer16BitAccess |
| 9 | OpCapability StorageBuffer16BitAccess |
| 10 | OpCapability StorageInputOutput16 |
| 11 | %21 = OpExtInstImport "GLSL.std.450" |
| 12 | OpMemoryModel Logical GLSL450 |
| 13 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 14 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 15 | OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output |
| 16 | OpExecutionMode %fragment_main OriginUpperLeft |
| 17 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 18 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 19 | OpName %tint_symbol_1 "tint_symbol_1" |
| 20 | OpName %vertex_main_position_Output "vertex_main_position_Output" |
| 21 | OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| 22 | OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| 23 | OpName %length_c158da "length_c158da" |
| 24 | OpName %arg_0 "arg_0" |
| 25 | OpName %res "res" |
| 26 | OpName %fragment_main "fragment_main" |
| 27 | OpName %compute_main "compute_main" |
| 28 | OpName %vertex_main_inner "vertex_main_inner" |
| 29 | OpMemberName %VertexOutput 0 "pos" |
| 30 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 31 | OpName %VertexOutput "VertexOutput" |
| 32 | OpName %out "out" |
| 33 | OpName %vertex_main "vertex_main" |
| 34 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 35 | OpDecorate %tint_symbol_1 Block |
| 36 | OpDecorate %1 DescriptorSet 0 |
| 37 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 38 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 39 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 40 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 41 | OpDecorate %vertex_main_loc0_Output Flat |
| 42 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 43 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 44 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 45 | %half = OpTypeFloat 16 |
| 46 | %tint_symbol_1 = OpTypeStruct %half |
| 47 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 48 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 49 | %float = OpTypeFloat 32 |
| 50 | %v4float = OpTypeVector %float 4 |
| 51 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 52 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 53 | %_ptr_Output_half = OpTypePointer Output %half |
| 54 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_half Output |
| 55 | %_ptr_Output_float = OpTypePointer Output %float |
| 56 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 57 | %14 = OpTypeFunction %half |
| 58 | %_ptr_Function_half = OpTypePointer Function %half |
| 59 | %half_0x0p_0 = OpConstant %half 0x0p+0 |
| 60 | %void = OpTypeVoid |
| 61 | %26 = OpTypeFunction %void |
| 62 | %_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half |
| 63 | %uint = OpTypeInt 32 0 |
| 64 | %uint_0 = OpConstant %uint 0 |
| 65 | %VertexOutput = OpTypeStruct %v4float %half |
| 66 | %39 = OpTypeFunction %VertexOutput |
| 67 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 68 | %43 = OpConstantNull %VertexOutput |
| 69 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 70 | %46 = OpConstantNull %v4float |
| 71 | %uint_1 = OpConstant %uint 1 |
| 72 | %float_1 = OpConstant %float 1 |
| 73 | %length_c158da = OpFunction %half None %14 |
| 74 | %15 = OpLabel |
| 75 | %arg_0 = OpVariable %_ptr_Function_half Function |
| 76 | %res = OpVariable %_ptr_Function_half Function |
| 77 | OpStore %arg_0 %half_0x0p_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 78 | %19 = OpLoad %half %arg_0 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 79 | %20 = OpExtInst %half %21 Length %19 |
| 80 | OpStore %res %20 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 81 | %23 = OpLoad %half %res None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 82 | OpReturnValue %23 |
| 83 | OpFunctionEnd |
| 84 | %fragment_main = OpFunction %void None %26 |
| 85 | %27 = OpLabel |
| 86 | %28 = OpFunctionCall %half %length_c158da |
| 87 | %29 = OpAccessChain %_ptr_StorageBuffer_half %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 88 | OpStore %29 %28 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 89 | OpReturn |
| 90 | OpFunctionEnd |
| 91 | %compute_main = OpFunction %void None %26 |
| 92 | %34 = OpLabel |
| 93 | %35 = OpFunctionCall %half %length_c158da |
| 94 | %36 = OpAccessChain %_ptr_StorageBuffer_half %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 95 | OpStore %36 %35 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 96 | OpReturn |
| 97 | OpFunctionEnd |
| 98 | %vertex_main_inner = OpFunction %VertexOutput None %39 |
| 99 | %40 = OpLabel |
| 100 | %out = OpVariable %_ptr_Function_VertexOutput Function %43 |
| 101 | %44 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 102 | OpStore %44 %46 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 103 | %47 = OpAccessChain %_ptr_Function_half %out %uint_1 |
| 104 | %49 = OpFunctionCall %half %length_c158da |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 105 | OpStore %47 %49 None |
| 106 | %50 = OpLoad %VertexOutput %out None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 107 | OpReturnValue %50 |
| 108 | OpFunctionEnd |
| 109 | %vertex_main = OpFunction %void None %26 |
| 110 | %52 = OpLabel |
| 111 | %53 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 112 | %54 = OpCompositeExtract %v4float %53 0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 113 | OpStore %vertex_main_position_Output %54 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 114 | %55 = OpCompositeExtract %half %53 1 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 115 | OpStore %vertex_main_loc0_Output %55 None |
| 116 | OpStore %vertex_main___point_size_Output %float_1 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 117 | OpReturn |
| 118 | OpFunctionEnd |