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: 30 |
| 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 |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 13 | OpMemberName %prevent_dce_block 0 "inner" |
| 14 | OpName %prevent_dce_block "prevent_dce_block" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 15 | OpName %arg_0 "arg_0" |
| 16 | OpName %textureLoad_babdf3 "textureLoad_babdf3" |
| 17 | OpName %res "res" |
| 18 | OpName %fragment_main "fragment_main" |
| 19 | OpName %compute_main "compute_main" |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 20 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 21 | OpDecorate %prevent_dce_block Block |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 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 |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 30 | %prevent_dce_block = OpTypeStruct %v4uint |
| 31 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 32 | %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 33 | %8 = OpTypeImage %uint 1D 0 0 0 2 Rgba16ui |
| 34 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 35 | %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 36 | %10 = OpTypeFunction %v4uint |
| 37 | %uint_1 = OpConstant %uint 1 |
| 38 | %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| 39 | %void = OpTypeVoid |
| 40 | %20 = OpTypeFunction %void |
| 41 | %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| 42 | %uint_0 = OpConstant %uint 0 |
| 43 | %textureLoad_babdf3 = OpFunction %v4uint None %10 |
| 44 | %11 = OpLabel |
| 45 | %res = OpVariable %_ptr_Function_v4uint Function |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 46 | %12 = OpLoad %8 %arg_0 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 47 | %13 = OpImageRead %v4uint %12 %uint_1 None |
| 48 | OpStore %res %13 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 49 | %17 = OpLoad %v4uint %res None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 50 | OpReturnValue %17 |
| 51 | OpFunctionEnd |
| 52 | %fragment_main = OpFunction %void None %20 |
| 53 | %21 = OpLabel |
| 54 | %22 = OpFunctionCall %v4uint %textureLoad_babdf3 |
| 55 | %23 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 56 | OpStore %23 %22 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 57 | OpReturn |
| 58 | OpFunctionEnd |
| 59 | %compute_main = OpFunction %void None %20 |
| 60 | %27 = OpLabel |
| 61 | %28 = OpFunctionCall %v4uint %textureLoad_babdf3 |
| 62 | %29 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 63 | OpStore %29 %28 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 64 | OpReturn |
| 65 | OpFunctionEnd |