diff --git a/Metaballs/Shaders.metal b/Metaballs/Shaders.metal index 97f46bb..8e3998b 100644 --- a/Metaballs/Shaders.metal +++ b/Metaballs/Shaders.metal @@ -9,4 +9,15 @@ #include using namespace metal; +typedef struct { + float2 position; + float radius; +} Ball; +kernel void +sampleFieldKernel(const device Ball* metaballs [[buffer(0)]], + device float* samples [[buffer(1)]], + uint2 gid [[thread_position_in_grid]]) +{ + // TODO: Compute a sample for this pixel given the field data, and write it to the out texture. +}