C# 클래스 datastructures.SharedDepthBuffer

Represents a depth buffer that is accessable by multiple threads. Internally multiple depth buffers are stored so that each can be accessed by its own thread and no conflicts occur. These depth buffers are merged back into one (by computing max(depthBuffer0, ..., depthBufferN) for every element).
파일 보기 프로젝트 열기: denniskb/asvo_cuda

공개 프로퍼티들

프로퍼티 타입 설명
_elements float[][]
_maxDims float[]

공개 메소드들

메소드 설명
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.

메소드 상세

SharedDepthBuffer() 공개 메소드

Constructs a new shared depth buffer with the size of elementCount
public SharedDepthBuffer ( int elementCount )
elementCount int The size of the buffer.

merge() 공개 메소드

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.
public merge ( int threadIndex, Color colorBuffer ) : void
threadIndex int Index of the calling thread, starts at 0.
colorBuffer Color An array of 2D surfaces.
리턴 void

zeroOut() 공개 메소드

Zeroes the depth buffer.
public zeroOut ( int threadIndex ) : void
threadIndex int Index of the calling thread, starts at 0
리턴 void

프로퍼티 상세

_elements 공개적으로 프로퍼티

public float[][] _elements
리턴 float[][]

_maxDims 공개적으로 프로퍼티

public float[] _maxDims
리턴 float[]