Ben Clayton | da5424b | 2022-10-24 23:58:53 +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: 49 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability Sampled1D |
| 8 | OpMemoryModel Logical GLSL450 |
| 9 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 10 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 11 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 12 | OpExecutionMode %fragment_main OriginUpperLeft |
| 13 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 14 | OpName %value "value" |
| 15 | OpName %vertex_point_size "vertex_point_size" |
| 16 | OpName %arg_0 "arg_0" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 17 | OpName %prevent_dce_block "prevent_dce_block" |
| 18 | OpMemberName %prevent_dce_block 0 "inner" |
| 19 | OpName %prevent_dce "prevent_dce" |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 20 | OpName %textureLoad_6d376a "textureLoad_6d376a" |
| 21 | OpName %arg_1 "arg_1" |
| 22 | OpName %arg_2 "arg_2" |
| 23 | OpName %res "res" |
| 24 | OpName %vertex_main_inner "vertex_main_inner" |
| 25 | OpName %vertex_main "vertex_main" |
| 26 | OpName %fragment_main "fragment_main" |
| 27 | OpName %compute_main "compute_main" |
| 28 | OpDecorate %value BuiltIn Position |
| 29 | OpDecorate %vertex_point_size BuiltIn PointSize |
| 30 | OpDecorate %arg_0 DescriptorSet 1 |
| 31 | OpDecorate %arg_0 Binding 0 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 32 | OpDecorate %prevent_dce_block Block |
| 33 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 34 | OpDecorate %prevent_dce DescriptorSet 2 |
| 35 | OpDecorate %prevent_dce Binding 0 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 36 | %float = OpTypeFloat 32 |
| 37 | %v4float = OpTypeVector %float 4 |
| 38 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 39 | %5 = OpConstantNull %v4float |
| 40 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 41 | %_ptr_Output_float = OpTypePointer Output %float |
| 42 | %8 = OpConstantNull %float |
| 43 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
| 44 | %11 = OpTypeImage %float 1D 0 0 0 1 Unknown |
| 45 | %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 |
| 46 | %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 47 | %prevent_dce_block = OpTypeStruct %v4float |
| 48 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 49 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 50 | %void = OpTypeVoid |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 51 | %15 = OpTypeFunction %void |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 52 | %uint = OpTypeInt 32 0 |
| 53 | %uint_1 = OpConstant %uint 1 |
| 54 | %_ptr_Function_uint = OpTypePointer Function %uint |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 55 | %23 = OpConstantNull %uint |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 56 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 57 | %uint_0 = OpConstant %uint 0 |
| 58 | %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| 59 | %35 = OpTypeFunction %v4float |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 60 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 61 | %textureLoad_6d376a = OpFunction %void None %15 |
| 62 | %18 = OpLabel |
| 63 | %arg_1 = OpVariable %_ptr_Function_uint Function %23 |
| 64 | %arg_2 = OpVariable %_ptr_Function_uint Function %23 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 65 | %res = OpVariable %_ptr_Function_v4float Function %5 |
| 66 | OpStore %arg_1 %uint_1 |
| 67 | OpStore %arg_2 %uint_1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 68 | %26 = OpLoad %11 %arg_0 |
| 69 | %27 = OpLoad %uint %arg_1 |
| 70 | %28 = OpLoad %uint %arg_2 |
| 71 | %25 = OpImageFetch %v4float %26 %27 Lod %28 |
| 72 | OpStore %res %25 |
| 73 | %33 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0 |
| 74 | %34 = OpLoad %v4float %res |
| 75 | OpStore %33 %34 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 76 | OpReturn |
| 77 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 78 | %vertex_main_inner = OpFunction %v4float None %35 |
| 79 | %37 = OpLabel |
| 80 | %38 = OpFunctionCall %void %textureLoad_6d376a |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 81 | OpReturnValue %5 |
| 82 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 83 | %vertex_main = OpFunction %void None %15 |
| 84 | %40 = OpLabel |
| 85 | %41 = OpFunctionCall %v4float %vertex_main_inner |
| 86 | OpStore %value %41 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 87 | OpStore %vertex_point_size %float_1 |
| 88 | OpReturn |
| 89 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 90 | %fragment_main = OpFunction %void None %15 |
| 91 | %44 = OpLabel |
| 92 | %45 = OpFunctionCall %void %textureLoad_6d376a |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 93 | OpReturn |
| 94 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 95 | %compute_main = OpFunction %void None %15 |
| 96 | %47 = OpLabel |
| 97 | %48 = OpFunctionCall %void %textureLoad_6d376a |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 98 | OpReturn |
| 99 | OpFunctionEnd |