DOTS Geometry
 
Loading...
Searching...
No Matches
GradientExtension Class Reference

Static Public Member Functions

static unsafe GraphicsBuffer ToGraphicsBuffer (this Gradient gradient, int length)
 Allocates a graphics buffer with the given length and initializes it with the gradient values for use with compute shaders.
 
static NativeArray< Color > ToNativeArray (this Gradient gradient, int length, Allocator allocator=Allocator.TempJob)
 Allocates a native array with the given length and initializes it with the gradient values for use with the Job System.
 

Member Function Documentation

◆ ToGraphicsBuffer()

static unsafe GraphicsBuffer ToGraphicsBuffer ( this Gradient gradient,
int length )
static

Allocates a graphics buffer with the given length and initializes it with the gradient values for use with compute shaders.

Parameters
gradient
length
Returns

◆ ToNativeArray()

static NativeArray< Color > ToNativeArray ( this Gradient gradient,
int length,
Allocator allocator = Allocator::TempJob )
static

Allocates a native array with the given length and initializes it with the gradient values for use with the Job System.

Parameters
gradient
length
allocator
Returns