dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 31 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability Image1D |
| 8 | OpMemoryModel Logical GLSL450 |
| 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 |
| 13 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 14 | OpName %tint_symbol_1 "tint_symbol_1" |
| 15 | OpName %arg_0 "arg_0" |
| 16 | OpName %textureLoad_b60a86 "textureLoad_b60a86" |
| 17 | OpName %res "res" |
| 18 | OpName %fragment_main "fragment_main" |
| 19 | OpName %compute_main "compute_main" |
| 20 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 21 | OpDecorate %tint_symbol_1 Block |
| 22 | OpDecorate %1 DescriptorSet 0 |
| 23 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 24 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 25 | OpDecorate %arg_0 DescriptorSet 1 |
| 26 | OpDecorate %arg_0 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 27 | OpDecorate %arg_0 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 28 | %uint = OpTypeInt 32 0 |
| 29 | %v4uint = OpTypeVector %uint 4 |
| 30 | %tint_symbol_1 = OpTypeStruct %v4uint |
| 31 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 32 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 33 | %8 = OpTypeImage %uint 1D 0 0 0 2 Rgba32ui |
| 34 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 35 | %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 36 | %10 = OpTypeFunction %v4uint |
| 37 | %int = OpTypeInt 32 1 |
| 38 | %int_1 = OpConstant %int 1 |
| 39 | %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| 40 | %void = OpTypeVoid |
| 41 | %21 = OpTypeFunction %void |
| 42 | %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| 43 | %uint_0 = OpConstant %uint 0 |
| 44 | %textureLoad_b60a86 = OpFunction %v4uint None %10 |
| 45 | %11 = OpLabel |
| 46 | %res = OpVariable %_ptr_Function_v4uint Function |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 47 | %12 = OpLoad %8 %arg_0 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 48 | %13 = OpImageRead %v4uint %12 %int_1 None |
| 49 | OpStore %res %13 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 50 | %18 = OpLoad %v4uint %res None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 51 | OpReturnValue %18 |
| 52 | OpFunctionEnd |
| 53 | %fragment_main = OpFunction %void None %21 |
| 54 | %22 = OpLabel |
| 55 | %23 = OpFunctionCall %v4uint %textureLoad_b60a86 |
| 56 | %24 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 57 | OpStore %24 %23 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 58 | OpReturn |
| 59 | OpFunctionEnd |
| 60 | %compute_main = OpFunction %void None %21 |
| 61 | %28 = OpLabel |
| 62 | %29 = OpFunctionCall %v4uint %textureLoad_b60a86 |
| 63 | %30 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 64 | OpStore %30 %29 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 65 | OpReturn |
| 66 | OpFunctionEnd |