| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 31 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpMemberName %s_block 0 "inner" | |
| OpName %s_block "s_block" | |
| OpName %main "main" | |
| OpName %v "v" | |
| OpName %scalar "scalar" | |
| OpName %swizzle2 "swizzle2" | |
| OpName %swizzle3 "swizzle3" | |
| OpMemberDecorate %s_block 0 Offset 0 | |
| OpDecorate %s_block Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 Coherent | |
| %float = OpTypeFloat 32 | |
| %v3float = OpTypeVector %float 3 | |
| %s_block = OpTypeStruct %v3float | |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block | |
| %1 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer | |
| %void = OpTypeVoid | |
| %8 = OpTypeFunction %void | |
| %_ptr_Function_v3float = OpTypePointer Function %v3float | |
| %12 = OpConstantNull %v3float | |
| %_ptr_Function_float = OpTypePointer Function %float | |
| %uint = OpTypeInt 32 0 | |
| %uint_1 = OpConstant %uint 1 | |
| %v2float = OpTypeVector %float 2 | |
| %float_1 = OpConstant %float 1 | |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float | |
| %uint_0 = OpConstant %uint 0 | |
| %main = OpFunction %void None %8 | |
| %9 = OpLabel | |
| %v = OpVariable %_ptr_Function_v3float Function %12 | |
| %13 = OpAccessChain %_ptr_Function_float %v %uint_1 | |
| %scalar = OpLoad %float %13 None | |
| %18 = OpLoad %v3float %v None | |
| %swizzle2 = OpVectorShuffle %v2float %18 %18 0 2 | |
| %21 = OpLoad %v3float %v None | |
| %swizzle3 = OpVectorShuffle %v3float %21 %21 0 2 1 | |
| %23 = OpCompositeConstruct %v3float %scalar %scalar %scalar | |
| %24 = OpCompositeConstruct %v3float %swizzle2 %float_1 | |
| %26 = OpFAdd %v3float %23 %24 | |
| %27 = OpFAdd %v3float %26 %swizzle3 | |
| %28 = OpAccessChain %_ptr_StorageBuffer_v3float %1 %uint_0 | |
| OpStore %28 %27 None | |
| OpReturn | |
| OpFunctionEnd |