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: 46 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 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 %all_f46790 "all_f46790" |
| 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 | %int = OpTypeInt 32 1 |
| 39 | %prevent_dce_block = OpTypeStruct %int |
| 40 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 41 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 42 | %void = OpTypeVoid |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 43 | %13 = OpTypeFunction %void |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 44 | %bool = OpTypeBool |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 45 | %true = OpConstantTrue %bool |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 46 | %_ptr_Function_bool = OpTypePointer Function %bool |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 47 | %21 = OpConstantNull %bool |
| 48 | %uint = OpTypeInt 32 0 |
| 49 | %uint_0 = OpConstant %uint 0 |
| 50 | %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| 51 | %int_1 = OpConstant %int 1 |
| 52 | %31 = OpConstantNull %int |
| 53 | %32 = OpTypeFunction %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 54 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 55 | %all_f46790 = OpFunction %void None %13 |
| 56 | %16 = OpLabel |
| 57 | %res = OpVariable %_ptr_Function_bool Function %21 |
dan sinclair | 58eca19 | 2022-11-03 12:07:49 +0000 | [diff] [blame] | 58 | OpStore %res %true |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 59 | %25 = OpAccessChain %_ptr_StorageBuffer_int %prevent_dce %uint_0 |
| 60 | %28 = OpLoad %bool %res |
| 61 | %29 = OpLogicalEqual %bool %28 %21 |
| 62 | %26 = OpSelect %int %29 %int_1 %31 |
| 63 | OpStore %25 %26 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 64 | OpReturn |
| 65 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 66 | %vertex_main_inner = OpFunction %v4float None %32 |
| 67 | %34 = OpLabel |
| 68 | %35 = OpFunctionCall %void %all_f46790 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 69 | OpReturnValue %5 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 70 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 71 | %vertex_main = OpFunction %void None %13 |
| 72 | %37 = OpLabel |
| 73 | %38 = OpFunctionCall %v4float %vertex_main_inner |
| 74 | OpStore %value %38 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 75 | OpStore %vertex_point_size %float_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 76 | OpReturn |
| 77 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 78 | %fragment_main = OpFunction %void None %13 |
| 79 | %41 = OpLabel |
| 80 | %42 = OpFunctionCall %void %all_f46790 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 81 | OpReturn |
| 82 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 83 | %compute_main = OpFunction %void None %13 |
| 84 | %44 = OpLabel |
| 85 | %45 = OpFunctionCall %void %all_f46790 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 86 | OpReturn |
| 87 | OpFunctionEnd |