Natalie Chouinard | b862299 | 2024-08-12 15:44:48 +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 GroupNonUniformShuffle |
| 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 %subgroupShuffle_bbb06c "subgroupShuffle_bbb06c" |
| 16 | OpName %res "res" |
| 17 | OpName %fragment_main "fragment_main" |
| 18 | OpName %compute_main "compute_main" |
| 19 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 20 | OpDecorate %tint_symbol_1 Block |
| 21 | OpDecorate %1 DescriptorSet 0 |
| 22 | OpDecorate %1 Binding 0 |
| 23 | %int = OpTypeInt 32 1 |
| 24 | %v2int = OpTypeVector %int 2 |
| 25 | %tint_symbol_1 = OpTypeStruct %v2int |
| 26 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 27 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 28 | %7 = OpTypeFunction %v2int |
| 29 | %uint = OpTypeInt 32 0 |
| 30 | %int_1 = OpConstant %int 1 |
| 31 | %uint_3 = OpConstant %uint 3 |
| 32 | %14 = OpConstantComposite %v2int %int_1 %int_1 |
| 33 | %_ptr_Function_v2int = OpTypePointer Function %v2int |
| 34 | %void = OpTypeVoid |
| 35 | %20 = OpTypeFunction %void |
| 36 | %_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int |
| 37 | %uint_0 = OpConstant %uint 0 |
| 38 | %subgroupShuffle_bbb06c = OpFunction %v2int None %7 |
| 39 | %8 = OpLabel |
| 40 | %res = OpVariable %_ptr_Function_v2int Function |
| 41 | %10 = OpBitcast %uint %int_1 |
| 42 | %12 = OpGroupNonUniformShuffle %v2int %uint_3 %14 %10 |
| 43 | OpStore %res %12 |
| 44 | %17 = OpLoad %v2int %res |
| 45 | OpReturnValue %17 |
| 46 | OpFunctionEnd |
| 47 | %fragment_main = OpFunction %void None %20 |
| 48 | %21 = OpLabel |
| 49 | %22 = OpFunctionCall %v2int %subgroupShuffle_bbb06c |
| 50 | %23 = OpAccessChain %_ptr_StorageBuffer_v2int %1 %uint_0 |
| 51 | OpStore %23 %22 |
| 52 | OpReturn |
| 53 | OpFunctionEnd |
| 54 | %compute_main = OpFunction %void None %20 |
| 55 | %27 = OpLabel |
| 56 | %28 = OpFunctionCall %v2int %subgroupShuffle_bbb06c |
| 57 | %29 = OpAccessChain %_ptr_StorageBuffer_v2int %1 %uint_0 |
| 58 | OpStore %29 %28 |
| 59 | OpReturn |
| 60 | OpFunctionEnd |