This could be implemented as clamp_to_zero on iOS and clamp_to_border with transparent black border on macOS. See https://developer.apple.com/documentation/metal/mtlsampleraddressmode/mtlsampleraddressmodeclamptozero