Hi,
I'm trying to compile my .metal file into .metallib with:
xcrun -sdk iphoneos metal -std=ios-metal1.1 Shaders.metal -o CameraShader.air
xcrun -sdk iphoneos metallib CameraShader.air -o CameraShader.metallib
But when I call device.makeRenderPipelineState it throws with error:
Error Domain=AGXMetalA9 Code=1 "Function displayTexture has a deployment target which is incompatible with this OS." UserInfo={NSLocalizedDescription=Function displayTexture has a deployment target which is incompatible with this OS.}
If I use .metal file everything works fine.
What I'm doing wrong?