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