Metal and Swift PM

I have run into an issue where I am trying to use atomic_float in a swift package but I cannot get things to compile because it appears that the Swift Package Manager doesn't support Metal 3 (atomic_float is Metal 3 functionality). Is there any way around this? I am using

// swift-tools-version: 6.1

and my Metal code includes:

#include <metal_stdlib>
#include <metal_geometric>
#include <metal_math>
#include <metal_atomic>


using namespace metal;


kernel void test(device atomic_float* imageBuffer [[buffer(1)]],
                 uint id [[ thread_position_in_grid ]]) {
    
}

But I get an error on the definition of atomic_float .

Any help, one more importantly, where I could have found this information about this limitation, would be helpful.

-RadBobby

Metal and Swift PM
 
 
Q