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: 40 |
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 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 10 | OpMemoryModel Logical GLSL450 |
| 11 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 12 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 13 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 14 | OpExecutionMode %fragment_main OriginUpperLeft |
| 15 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 16 | OpName %value "value" |
| 17 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 18 | OpName %prevent_dce_block "prevent_dce_block" |
| 19 | OpMemberName %prevent_dce_block 0 "inner" |
| 20 | OpName %prevent_dce "prevent_dce" |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 21 | OpName %acosh_a37dfe "acosh_a37dfe" |
| 22 | OpName %res "res" |
| 23 | OpName %vertex_main_inner "vertex_main_inner" |
| 24 | OpName %vertex_main "vertex_main" |
| 25 | OpName %fragment_main "fragment_main" |
| 26 | OpName %compute_main "compute_main" |
| 27 | OpDecorate %value BuiltIn Position |
| 28 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 29 | OpDecorate %prevent_dce_block Block |
| 30 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 31 | OpDecorate %prevent_dce DescriptorSet 2 |
| 32 | OpDecorate %prevent_dce Binding 0 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 33 | %float = OpTypeFloat 32 |
| 34 | %v4float = OpTypeVector %float 4 |
| 35 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 36 | %5 = OpConstantNull %v4float |
| 37 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 38 | %_ptr_Output_float = OpTypePointer Output %float |
| 39 | %8 = OpConstantNull %float |
| 40 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
dan sinclair | e2fd5e0 | 2022-11-10 02:39:08 +0000 | [diff] [blame] | 41 | %half = OpTypeFloat 16 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 42 | %prevent_dce_block = OpTypeStruct %half |
| 43 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 44 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| 45 | %void = OpTypeVoid |
| 46 | %13 = OpTypeFunction %void |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 47 | %half_0x1_ffcpn1 = OpConstant %half 0x1.ffcp-1 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 48 | %_ptr_Function_half = OpTypePointer Function %half |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 49 | %20 = OpConstantNull %half |
| 50 | %uint = OpTypeInt 32 0 |
| 51 | %uint_0 = OpConstant %uint 0 |
| 52 | %_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half |
| 53 | %26 = OpTypeFunction %v4float |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 54 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 55 | %acosh_a37dfe = OpFunction %void None %13 |
| 56 | %16 = OpLabel |
| 57 | %res = OpVariable %_ptr_Function_half Function %20 |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 58 | OpStore %res %half_0x1_ffcpn1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 59 | %24 = OpAccessChain %_ptr_StorageBuffer_half %prevent_dce %uint_0 |
| 60 | %25 = OpLoad %half %res |
| 61 | OpStore %24 %25 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 62 | OpReturn |
| 63 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 64 | %vertex_main_inner = OpFunction %v4float None %26 |
| 65 | %28 = OpLabel |
| 66 | %29 = OpFunctionCall %void %acosh_a37dfe |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 67 | OpReturnValue %5 |
| 68 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 69 | %vertex_main = OpFunction %void None %13 |
| 70 | %31 = OpLabel |
| 71 | %32 = OpFunctionCall %v4float %vertex_main_inner |
| 72 | OpStore %value %32 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 73 | OpStore %vertex_point_size %float_1 |
| 74 | OpReturn |
| 75 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 76 | %fragment_main = OpFunction %void None %13 |
| 77 | %35 = OpLabel |
| 78 | %36 = OpFunctionCall %void %acosh_a37dfe |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 79 | OpReturn |
| 80 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 81 | %compute_main = OpFunction %void None %13 |
| 82 | %38 = OpLabel |
| 83 | %39 = OpFunctionCall %void %acosh_a37dfe |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 84 | OpReturn |
| 85 | OpFunctionEnd |