[Metaballs] Sort out the Metal kernel declaration
This commit is contained in:
parent
4023e17b15
commit
ee7bd497cc
1 changed files with 11 additions and 0 deletions
|
@ -9,4 +9,15 @@
|
|||
#include <metal_stdlib>
|
||||
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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue