C# Class VoxelTerrain.DirectComputeGenerator

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

Public Methods

Method Description
DirectComputeGenerator ( SlimDX.Direct3D11.Device graphicsDevice, VoxelMeshContainer container ) : System
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 ( ComputeShader computePositionWeight, int width, int height, int depth ) : void
Initialize ( ) : void
NearestPowerOfTwo ( int x ) : int

Method Details

DirectComputeGenerator() public method

public DirectComputeGenerator ( SlimDX.Direct3D11.Device graphicsDevice, VoxelMeshContainer container ) : System
graphicsDevice SlimDX.Direct3D11.Device
container VoxelMeshContainer
return System

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