| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| ; Bound: 19 |
| ; Schema: 0 |
| OpCapability Addresses |
| OpCapability Linkage |
| OpCapability Kernel |
| OpCapability Int8 |
| OpMemoryModel Physical32 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 |
| %uint = OpTypeInt 32 0 |
| %v3uint = OpTypeVector %uint 3 |
| %_ptr_UniformConstant_v3uint = OpTypePointer UniformConstant %v3uint |
| %void = OpTypeVoid |
| %uchar = OpTypeInt 8 0 |
| %_struct_4 = OpTypeStruct %uint %uchar |
| %_ptr_CrossWorkgroup__struct_4 = OpTypePointer CrossWorkgroup %_struct_4 |
| %11 = OpTypeFunction %void %_ptr_CrossWorkgroup__struct_4 |
| %uint_2100483600 = OpConstant %uint 2100483600 |
| %uchar_127 = OpConstant %uchar 127 |
| %14 = OpConstantComposite %_struct_4 %uint_2100483600 %uchar_127 |
| %gl_GlobalInvocationID = OpVariable %_ptr_UniformConstant_v3uint UniformConstant |
| %1 = OpFunction %void None %11 |
| %in = OpFunctionParameter %_ptr_CrossWorkgroup__struct_4 |
| %15 = OpLabel |
| %16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0 |
| %17 = OpCompositeExtract %uint %16 0 |
| %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup__struct_4 %in %17 |
| OpStore %18 %14 |
| OpReturn |
| OpFunctionEnd |