Metal kernel: unknown attribute 'global_id' ignored
I am trying to create a kernel based on WWDC session 605:
#include <metal_stdlib>
using namespace metal;
kernel void downsizeColor(texture2d<short, access::sample> inputImage [[ texture(0) ]],
texture2d<short, access::write> resizedImage [[ texture(1) ]],
uint2 coords [[ global_id ]])
{
}
but I get a warning as per the title and it errors out on coords. Is global_id supposed to be substituted with something? I cannot find any other example apart from that pseudocode.
iPhone 6, iOS 8.1.3