Ben Clayton | b07a7ce | 2021-06-03 11:26: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: 37 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 7 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 8 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 10 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 11 | OpExecutionMode %fragment_main OriginUpperLeft |
| 12 | OpExecutionMode %compute_main LocalSize 1 1 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 13 | OpName %value "value" |
| 14 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 15 | OpName %prevent_dce_block "prevent_dce_block" |
| 16 | OpMemberName %prevent_dce_block 0 "inner" |
| 17 | OpName %prevent_dce "prevent_dce" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 18 | OpName %determinant_e19305 "determinant_e19305" |
| 19 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 20 | OpName %vertex_main_inner "vertex_main_inner" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 21 | OpName %vertex_main "vertex_main" |
| 22 | OpName %fragment_main "fragment_main" |
| 23 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 24 | OpDecorate %value BuiltIn Position |
| 25 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 26 | OpDecorate %prevent_dce_block Block |
| 27 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 28 | OpDecorate %prevent_dce DescriptorSet 2 |
| 29 | OpDecorate %prevent_dce Binding 0 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 30 | %float = OpTypeFloat 32 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 31 | %v4float = OpTypeVector %float 4 |
| 32 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 33 | %5 = OpConstantNull %v4float |
| 34 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 35 | %_ptr_Output_float = OpTypePointer Output %float |
| 36 | %8 = OpConstantNull %float |
| 37 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 38 | %prevent_dce_block = OpTypeStruct %float |
| 39 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 40 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 41 | %void = OpTypeVoid |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 42 | %12 = OpTypeFunction %void |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 43 | %_ptr_Function_float = OpTypePointer Function %float |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 44 | %uint = OpTypeInt 32 0 |
| 45 | %uint_0 = OpConstant %uint 0 |
| 46 | %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| 47 | %23 = OpTypeFunction %v4float |
Antonio Maiorano | 05c8daa | 2022-11-23 19:16:15 +0000 | [diff] [blame] | 48 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 49 | %determinant_e19305 = OpFunction %void None %12 |
| 50 | %15 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 51 | %res = OpVariable %_ptr_Function_float Function %8 |
Antonio Maiorano | 05c8daa | 2022-11-23 19:16:15 +0000 | [diff] [blame] | 52 | OpStore %res %8 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 53 | %21 = OpAccessChain %_ptr_StorageBuffer_float %prevent_dce %uint_0 |
| 54 | %22 = OpLoad %float %res |
| 55 | OpStore %21 %22 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 56 | OpReturn |
| 57 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 58 | %vertex_main_inner = OpFunction %v4float None %23 |
| 59 | %25 = OpLabel |
| 60 | %26 = OpFunctionCall %void %determinant_e19305 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 61 | OpReturnValue %5 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 62 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 63 | %vertex_main = OpFunction %void None %12 |
| 64 | %28 = OpLabel |
| 65 | %29 = OpFunctionCall %v4float %vertex_main_inner |
| 66 | OpStore %value %29 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 67 | OpStore %vertex_point_size %float_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 68 | OpReturn |
| 69 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 70 | %fragment_main = OpFunction %void None %12 |
| 71 | %32 = OpLabel |
| 72 | %33 = OpFunctionCall %void %determinant_e19305 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 73 | OpReturn |
| 74 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 75 | %compute_main = OpFunction %void None %12 |
| 76 | %35 = OpLabel |
| 77 | %36 = OpFunctionCall %void %determinant_e19305 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 78 | OpReturn |
| 79 | OpFunctionEnd |