| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| ; Bound: 23 |
| ; Schema: 0 |
| OpCapability Addresses |
| OpCapability Linkage |
| OpCapability Kernel |
| OpCapability Int64 |
| OpCapability Int8 |
| OpMemoryModel Physical64 OpenCL |
| OpEntryPoint Kernel %1 "decorate_cpacked" |
| OpName %in "in" |
| OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId |
| OpDecorate %gl_GlobalInvocationID Constant |
| OpDecorate %in FuncParamAttr NoCapture |
| OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import |
| OpDecorate %_struct_4 CPacked |
| %ulong = OpTypeInt 64 0 |
| %v3ulong = OpTypeVector %ulong 3 |
| %_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong |
| %void = OpTypeVoid |
| %uint = OpTypeInt 32 0 |
| %uchar = OpTypeInt 8 0 |
| %_struct_4 = OpTypeStruct %uint %uchar |
| %_ptr_CrossWorkgroup__struct_4 = OpTypePointer CrossWorkgroup %_struct_4 |
| %12 = OpTypeFunction %void %_ptr_CrossWorkgroup__struct_4 |
| %ulong_32 = OpConstant %ulong 32 |
| %uint_2100483600 = OpConstant %uint 2100483600 |
| %uchar_127 = OpConstant %uchar 127 |
| %16 = OpConstantComposite %_struct_4 %uint_2100483600 %uchar_127 |
| %gl_GlobalInvocationID = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant |
| %1 = OpFunction %void None %12 |
| %in = OpFunctionParameter %_ptr_CrossWorkgroup__struct_4 |
| %17 = OpLabel |
| %18 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 0 |
| %19 = OpCompositeExtract %ulong %18 0 |
| %20 = OpShiftLeftLogical %ulong %19 %ulong_32 |
| %21 = OpShiftRightArithmetic %ulong %20 %ulong_32 |
| %22 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup__struct_4 %in %21 |
| OpStore %22 %16 |
| OpReturn |
| OpFunctionEnd |