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: 52 |
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 | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 15 | OpName %arg_0 "arg_0" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 16 | OpName %prevent_dce_block "prevent_dce_block" |
| 17 | OpMemberName %prevent_dce_block 0 "inner" |
| 18 | OpName %prevent_dce "prevent_dce" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 19 | OpName %textureLoad_7c90e5 "textureLoad_7c90e5" |
| 20 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 21 | OpName %vertex_main_inner "vertex_main_inner" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 22 | OpName %vertex_main "vertex_main" |
| 23 | OpName %fragment_main "fragment_main" |
| 24 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 25 | OpDecorate %value BuiltIn Position |
| 26 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 27 | OpDecorate %arg_0 DescriptorSet 1 |
| 28 | OpDecorate %arg_0 Binding 0 |
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 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 33 | %float = OpTypeFloat 32 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 34 | %v4float = OpTypeVector %float 4 |
| 35 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 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 |
| 41 | %uint = OpTypeInt 32 0 |
| 42 | %11 = OpTypeImage %uint 2D 0 1 0 1 Unknown |
| 43 | %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 |
| 44 | %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 45 | %v4uint = OpTypeVector %uint 4 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 46 | %prevent_dce_block = OpTypeStruct %v4uint |
| 47 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 48 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| 49 | %void = OpTypeVoid |
| 50 | %17 = OpTypeFunction %void |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 51 | %int = OpTypeInt 32 1 |
| 52 | %v3int = OpTypeVector %int 3 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 53 | %v2int = OpTypeVector %int 2 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 54 | %int_1 = OpConstant %int 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 55 | %27 = OpConstantComposite %v2int %int_1 %int_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 56 | %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 57 | %33 = OpConstantNull %v4uint |
| 58 | %uint_0 = OpConstant %uint 0 |
| 59 | %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| 60 | %38 = OpTypeFunction %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 61 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 62 | %textureLoad_7c90e5 = OpFunction %void None %17 |
| 63 | %20 = OpLabel |
| 64 | %res = OpVariable %_ptr_Function_v4uint Function %33 |
| 65 | %22 = OpLoad %11 %arg_0 |
| 66 | %28 = OpCompositeExtract %int %27 0 |
| 67 | %29 = OpCompositeExtract %int %27 1 |
| 68 | %30 = OpCompositeConstruct %v3int %28 %29 %int_1 |
| 69 | %21 = OpImageFetch %v4uint %22 %30 Lod %int_1 |
| 70 | OpStore %res %21 |
| 71 | %36 = OpAccessChain %_ptr_StorageBuffer_v4uint %prevent_dce %uint_0 |
| 72 | %37 = OpLoad %v4uint %res |
| 73 | OpStore %36 %37 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 74 | OpReturn |
| 75 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 76 | %vertex_main_inner = OpFunction %v4float None %38 |
| 77 | %40 = OpLabel |
| 78 | %41 = OpFunctionCall %void %textureLoad_7c90e5 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 79 | OpReturnValue %5 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 80 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 81 | %vertex_main = OpFunction %void None %17 |
| 82 | %43 = OpLabel |
| 83 | %44 = OpFunctionCall %v4float %vertex_main_inner |
| 84 | OpStore %value %44 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 85 | OpStore %vertex_point_size %float_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 86 | OpReturn |
| 87 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 88 | %fragment_main = OpFunction %void None %17 |
| 89 | %47 = OpLabel |
| 90 | %48 = OpFunctionCall %void %textureLoad_7c90e5 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 91 | OpReturn |
| 92 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 93 | %compute_main = OpFunction %void None %17 |
| 94 | %50 = OpLabel |
| 95 | %51 = OpFunctionCall %void %textureLoad_7c90e5 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 96 | OpReturn |
| 97 | OpFunctionEnd |