Move sampling to a compute kernel

This commit is contained in:
Eryn Wells 2018-10-14 17:26:12 -07:00
parent d60b2d8744
commit 275b260cf9
5 changed files with 121 additions and 44 deletions

View file

@ -11,6 +11,9 @@
#include <metal_stdlib>
/// A Ball is a float 3-tuple: (x, y, r).
typedef float3 Ball;
struct Vertex {
float2 position;
float2 textureCoordinate;