Move sampling to a compute kernel
This commit is contained in:
parent
d60b2d8744
commit
275b260cf9
5 changed files with 121 additions and 44 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue