| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| ; Bound: 19 |
| ; Schema: 0 |
| OpCapability Addresses |
| OpCapability Kernel |
| OpCapability Linkage |
| OpCapability Int8 |
| OpMemoryModel Physical32 OpenCL |
| OpEntryPoint Kernel %1 "undef_struct_struct_simple" %gl_GlobalInvocationID |
| OpName %in "in" |
| OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId |
| OpDecorate %gl_GlobalInvocationID Constant |
| OpDecorate %in FuncParamAttr NoCapture |
| OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import |
| %uint = OpTypeInt 32 0 |
| %v3uint = OpTypeVector %uint 3 |
| %_ptr_Input_v3uint = OpTypePointer Input %v3uint |
| %void = OpTypeVoid |
| %v2uint = OpTypeVector %uint 2 |
| %uchar = OpTypeInt 8 0 |
| %_struct_10 = OpTypeStruct %uint %uchar |
| %_struct_11 = OpTypeStruct %v2uint %_struct_10 |
| %_ptr_CrossWorkgroup__struct_11 = OpTypePointer CrossWorkgroup %_struct_11 |
| %13 = OpTypeFunction %void %_ptr_CrossWorkgroup__struct_11 |
| %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input |
| %1 = OpFunction %void None %13 |
| %in = OpFunctionParameter %_ptr_CrossWorkgroup__struct_11 |
| %14 = OpLabel |
| %15 = OpUndef %_struct_11 |
| %16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0 |
| %17 = OpCompositeExtract %uint %16 0 |
| %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup__struct_11 %in %17 |
| OpStore %18 %15 |
| OpReturn |
| OpFunctionEnd |