| ; 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 "constant_struct_int_char_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 |
| %uchar = OpTypeInt 8 0 |
| %_struct_9 = OpTypeStruct %uint %uchar |
| %_ptr_CrossWorkgroup__struct_9 = OpTypePointer CrossWorkgroup %_struct_9 |
| %11 = OpTypeFunction %void %_ptr_CrossWorkgroup__struct_9 |
| %uint_2100483600 = OpConstant %uint 2100483600 |
| %uchar_128 = OpConstant %uchar 128 |
| %14 = OpConstantComposite %_struct_9 %uint_2100483600 %uchar_128 |
| %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input |
| %1 = OpFunction %void None %11 |
| %in = OpFunctionParameter %_ptr_CrossWorkgroup__struct_9 |
| %15 = OpLabel |
| %16 = OpLoad %v3uint %gl_GlobalInvocationID Aligned 0 |
| %17 = OpCompositeExtract %uint %16 0 |
| %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup__struct_9 %in %17 |
| OpStore %18 %14 |
| OpReturn |
| OpFunctionEnd |