Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 4 | ; Bound: 42 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability Float16 |
| 8 | OpCapability UniformAndStorageBuffer16BitAccess |
| 9 | OpCapability StorageBuffer16BitAccess |
| 10 | OpCapability StorageInputOutput16 |
| 11 | OpMemoryModel Logical GLSL450 |
| 12 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 13 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 14 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 15 | OpExecutionMode %fragment_main OriginUpperLeft |
| 16 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 17 | OpName %value "value" |
| 18 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 19 | OpName %prevent_dce_block "prevent_dce_block" |
| 20 | OpMemberName %prevent_dce_block 0 "inner" |
| 21 | OpName %prevent_dce "prevent_dce" |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 22 | OpName %select_53d518 "select_53d518" |
| 23 | OpName %res "res" |
| 24 | OpName %vertex_main_inner "vertex_main_inner" |
| 25 | OpName %vertex_main "vertex_main" |
| 26 | OpName %fragment_main "fragment_main" |
| 27 | OpName %compute_main "compute_main" |
| 28 | OpDecorate %value BuiltIn Position |
| 29 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 30 | OpDecorate %prevent_dce_block Block |
| 31 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 32 | OpDecorate %prevent_dce DescriptorSet 2 |
| 33 | OpDecorate %prevent_dce Binding 0 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 34 | %float = OpTypeFloat 32 |
| 35 | %v4float = OpTypeVector %float 4 |
| 36 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 37 | %5 = OpConstantNull %v4float |
| 38 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 39 | %_ptr_Output_float = OpTypePointer Output %float |
| 40 | %8 = OpConstantNull %float |
| 41 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 42 | %half = OpTypeFloat 16 |
| 43 | %v3half = OpTypeVector %half 3 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 44 | %prevent_dce_block = OpTypeStruct %v3half |
| 45 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 46 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| 47 | %void = OpTypeVoid |
| 48 | %14 = OpTypeFunction %void |
dan sinclair | d9b68eb | 2022-11-10 00:32:12 +0000 | [diff] [blame] | 49 | %half_0x1p_0 = OpConstant %half 0x1p+0 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 50 | %19 = OpConstantComposite %v3half %half_0x1p_0 %half_0x1p_0 %half_0x1p_0 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 51 | %_ptr_Function_v3half = OpTypePointer Function %v3half |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 52 | %22 = OpConstantNull %v3half |
| 53 | %uint = OpTypeInt 32 0 |
| 54 | %uint_0 = OpConstant %uint 0 |
| 55 | %_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half |
| 56 | %28 = OpTypeFunction %v4float |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 57 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 58 | %select_53d518 = OpFunction %void None %14 |
| 59 | %17 = OpLabel |
| 60 | %res = OpVariable %_ptr_Function_v3half Function %22 |
| 61 | OpStore %res %19 |
| 62 | %26 = OpAccessChain %_ptr_StorageBuffer_v3half %prevent_dce %uint_0 |
| 63 | %27 = OpLoad %v3half %res |
| 64 | OpStore %26 %27 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 65 | OpReturn |
| 66 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 67 | %vertex_main_inner = OpFunction %v4float None %28 |
| 68 | %30 = OpLabel |
| 69 | %31 = OpFunctionCall %void %select_53d518 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 70 | OpReturnValue %5 |
| 71 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 72 | %vertex_main = OpFunction %void None %14 |
| 73 | %33 = OpLabel |
| 74 | %34 = OpFunctionCall %v4float %vertex_main_inner |
| 75 | OpStore %value %34 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 76 | OpStore %vertex_point_size %float_1 |
| 77 | OpReturn |
| 78 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 79 | %fragment_main = OpFunction %void None %14 |
| 80 | %37 = OpLabel |
| 81 | %38 = OpFunctionCall %void %select_53d518 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 82 | OpReturn |
| 83 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 84 | %compute_main = OpFunction %void None %14 |
| 85 | %40 = OpLabel |
| 86 | %41 = OpFunctionCall %void %select_53d518 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 87 | OpReturn |
| 88 | OpFunctionEnd |