Property | Type | Description | |
---|---|---|---|
_elements | float[][] | ||
_maxDims | float[] |
Method | Description | |
---|---|---|
SharedDepthBuffer ( int elementCount ) |
Constructs a new shared depth buffer with the size of elementCount
|
|
merge ( int threadIndex, Color colorBuffer ) : void |
Merges the results from the different threads into one array. Additionally, an array of 2D surfaces (colorBuffer) is provided. Every element of this array was accessed by a different thread. The winning color at every pixel is derived from the winning (the smallest) depth at every pixel.
|
|
zeroOut ( int threadIndex ) : void |
Zeroes the depth buffer.
|
public SharedDepthBuffer ( int elementCount ) | ||
elementCount | int | The size of the buffer. |
public merge ( int threadIndex, Color colorBuffer ) : void | ||
threadIndex | int | Index of the calling thread, starts at 0. |
colorBuffer | Color | An array of 2D surfaces. |
return | void |
public zeroOut ( int threadIndex ) : void | ||
threadIndex | int | Index of the calling thread, starts at 0 |
return | void |