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 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 4 | ; Bound: 57 |
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 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 10 | OpCapability StorageInputOutput16 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 11 | OpMemoryModel Logical GLSL450 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 12 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 13 | OpEntryPoint GLCompute %compute_main "compute_main" |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 14 | OpEntryPoint Vertex %vertex_main "vertex_main" %pos_1 %prevent_dce_1 %vertex_point_size |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 15 | OpExecutionMode %fragment_main OriginUpperLeft |
| 16 | OpExecutionMode %compute_main LocalSize 1 1 1 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 17 | OpName %pos_1 "pos_1" |
| 18 | OpName %prevent_dce_1 "prevent_dce_1" |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 19 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 20 | OpName %prevent_dce_block "prevent_dce_block" |
| 21 | OpMemberName %prevent_dce_block 0 "inner" |
| 22 | OpName %prevent_dce "prevent_dce" |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 23 | OpName %asin_3cfbd4 "asin_3cfbd4" |
| 24 | OpName %res "res" |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 25 | OpName %fragment_main "fragment_main" |
| 26 | OpName %compute_main "compute_main" |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 27 | OpName %VertexOutput "VertexOutput" |
| 28 | OpMemberName %VertexOutput 0 "pos" |
| 29 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 30 | OpName %vertex_main_inner "vertex_main_inner" |
| 31 | OpName %out "out" |
| 32 | OpName %vertex_main "vertex_main" |
| 33 | OpDecorate %pos_1 BuiltIn Position |
| 34 | OpDecorate %prevent_dce_1 Location 0 |
| 35 | OpDecorate %prevent_dce_1 Flat |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 36 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 37 | OpDecorate %prevent_dce_block Block |
| 38 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 39 | OpDecorate %prevent_dce DescriptorSet 0 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 40 | OpDecorate %prevent_dce Binding 0 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 41 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 42 | OpMemberDecorate %VertexOutput 1 Offset 16 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 43 | %float = OpTypeFloat 32 |
| 44 | %v4float = OpTypeVector %float 4 |
| 45 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 46 | %5 = OpConstantNull %v4float |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 47 | %pos_1 = OpVariable %_ptr_Output_v4float Output %5 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 48 | %half = OpTypeFloat 16 |
| 49 | %v4half = OpTypeVector %half 4 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 50 | %_ptr_Output_v4half = OpTypePointer Output %v4half |
| 51 | %10 = OpConstantNull %v4half |
| 52 | %prevent_dce_1 = OpVariable %_ptr_Output_v4half Output %10 |
| 53 | %_ptr_Output_float = OpTypePointer Output %float |
| 54 | %13 = OpConstantNull %float |
| 55 | %vertex_point_size = OpVariable %_ptr_Output_float Output %13 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 56 | %prevent_dce_block = OpTypeStruct %v4half |
| 57 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 58 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 59 | %17 = OpTypeFunction %v4half |
dan sinclair | d9b68eb | 2022-11-10 00:32:12 +0000 | [diff] [blame] | 60 | %half_0x1_ffcpn2 = OpConstant %half 0x1.ffcp-2 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 61 | %21 = OpConstantComposite %v4half %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2 %half_0x1_ffcpn2 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 62 | %_ptr_Function_v4half = OpTypePointer Function %v4half |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 63 | %void = OpTypeVoid |
| 64 | %25 = OpTypeFunction %void |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 65 | %uint = OpTypeInt 32 0 |
| 66 | %uint_0 = OpConstant %uint 0 |
| 67 | %_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 68 | %VertexOutput = OpTypeStruct %v4float %v4half |
| 69 | %38 = OpTypeFunction %VertexOutput |
| 70 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 71 | %44 = OpConstantNull %VertexOutput |
| 72 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 73 | %uint_1 = OpConstant %uint 1 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 74 | %float_1 = OpConstant %float 1 |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 75 | %asin_3cfbd4 = OpFunction %v4half None %17 |
| 76 | %19 = OpLabel |
| 77 | %res = OpVariable %_ptr_Function_v4half Function %10 |
| 78 | OpStore %res %21 |
| 79 | %24 = OpLoad %v4half %res |
| 80 | OpReturnValue %24 |
| 81 | OpFunctionEnd |
| 82 | %fragment_main = OpFunction %void None %25 |
| 83 | %28 = OpLabel |
| 84 | %32 = OpAccessChain %_ptr_StorageBuffer_v4half %prevent_dce %uint_0 |
| 85 | %33 = OpFunctionCall %v4half %asin_3cfbd4 |
| 86 | OpStore %32 %33 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 87 | OpReturn |
| 88 | OpFunctionEnd |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 89 | %compute_main = OpFunction %void None %25 |
| 90 | %35 = OpLabel |
| 91 | %36 = OpAccessChain %_ptr_StorageBuffer_v4half %prevent_dce %uint_0 |
| 92 | %37 = OpFunctionCall %v4half %asin_3cfbd4 |
| 93 | OpStore %36 %37 |
| 94 | OpReturn |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 95 | OpFunctionEnd |
Natalie Chouinard | e902718 | 2024-06-13 18:50:19 +0000 | [diff] [blame] | 96 | %vertex_main_inner = OpFunction %VertexOutput None %38 |
| 97 | %41 = OpLabel |
| 98 | %out = OpVariable %_ptr_Function_VertexOutput Function %44 |
| 99 | %46 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 100 | OpStore %46 %5 |
| 101 | %48 = OpAccessChain %_ptr_Function_v4half %out %uint_1 |
| 102 | %49 = OpFunctionCall %v4half %asin_3cfbd4 |
| 103 | OpStore %48 %49 |
| 104 | %50 = OpLoad %VertexOutput %out |
| 105 | OpReturnValue %50 |
| 106 | OpFunctionEnd |
| 107 | %vertex_main = OpFunction %void None %25 |
| 108 | %52 = OpLabel |
| 109 | %53 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 110 | %54 = OpCompositeExtract %v4float %53 0 |
| 111 | OpStore %pos_1 %54 |
| 112 | %55 = OpCompositeExtract %v4half %53 1 |
| 113 | OpStore %prevent_dce_1 %55 |
Zhaoming Jiang | 9443ceb | 2022-08-05 15:15:17 +0000 | [diff] [blame] | 114 | OpStore %vertex_point_size %float_1 |
| 115 | OpReturn |
| 116 | OpFunctionEnd |