C# Class VoxelTerrain.CUDAGenerator

Inheritance: IGenerate, IDisposable
显示文件 Open project: barograf/VoxelTerrain

Public Methods

Method Description
CUDAGenerator ( SlimDX.Direct3D11.Device graphicsDevice, VoxelMeshContainer container ) : ManagedCuda
Dispose ( ) : void
GenerateFromFormula ( int width, int height, int depth ) : void
GenerateFromNoiseCube ( int width, int height, int depth ) : void
GenerateFromNoiseCubeWithWarp ( int width, int height, int depth ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Generate ( CudaKernel kernelPositionWeight, int width, int height, int depth ) : void
InitializeCUDA ( ) : void
NearestPowerOfTwo ( int x ) : int

Method Details

CUDAGenerator() public method

public CUDAGenerator ( SlimDX.Direct3D11.Device graphicsDevice, VoxelMeshContainer container ) : ManagedCuda
graphicsDevice SlimDX.Direct3D11.Device
container VoxelMeshContainer
return ManagedCuda

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GenerateFromFormula() public method

public GenerateFromFormula ( int width, int height, int depth ) : void
width int
height int
depth int
return void

GenerateFromNoiseCube() public method

public GenerateFromNoiseCube ( int width, int height, int depth ) : void
width int
height int
depth int
return void

GenerateFromNoiseCubeWithWarp() public method

public GenerateFromNoiseCubeWithWarp ( int width, int height, int depth ) : void
width int
height int
depth int
return void