| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos SPIR-V Tools Assembler; 0 |
| ; Bound: 20 |
| ; Schema: 0 |
| OpCapability Addresses |
| OpCapability Linkage |
| OpCapability Kernel |
| OpCapability Int64 |
| OpMemoryModel Physical64 OpenCL |
| OpEntryPoint Kernel %1 "copy_float_simple" |
| OpName %in "in" |
| OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId |
| OpDecorate %gl_GlobalInvocationID Constant |
| OpDecorate %in FuncParamAttr NoCapture |
| OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import |
| %ulong = OpTypeInt 64 0 |
| %v3ulong = OpTypeVector %ulong 3 |
| %_ptr_UniformConstant_v3ulong = OpTypePointer UniformConstant %v3ulong |
| %void = OpTypeVoid |
| %float = OpTypeFloat 32 |
| %_ptr_CrossWorkgroup_float = OpTypePointer CrossWorkgroup %float |
| %10 = OpTypeFunction %void %_ptr_CrossWorkgroup_float |
| %ulong_32 = OpConstant %ulong 32 |
| %float_3_14159274 = OpConstant %float 3.14159274 |
| %gl_GlobalInvocationID = OpVariable %_ptr_UniformConstant_v3ulong UniformConstant |
| %1 = OpFunction %void None %10 |
| %in = OpFunctionParameter %_ptr_CrossWorkgroup_float |
| %13 = OpLabel |
| %14 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 0 |
| %15 = OpCompositeExtract %ulong %14 0 |
| %16 = OpShiftLeftLogical %ulong %15 %ulong_32 |
| %17 = OpShiftRightArithmetic %ulong %16 %ulong_32 |
| %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_float %in %17 |
| %19 = OpCopyObject %float %float_3_14159274 |
| OpStore %18 %19 |
| OpReturn |
| OpFunctionEnd |