C# Class AcTools.Render.Base.PostEffects.BlurHelper

Inheritance: IRenderHelper
Mostrar archivo Open project: gro-ove/actools Class Usage Examples

Public Methods

Method Description
Blur ( DeviceContextHolder holder, TargetResourceTexture source, TargetResourceTexture temporary, float power = 1f, int iterations = 1, TargetResourceTexture target = null ) : void
BlurHorizontally ( DeviceContextHolder holder, ShaderResourceView view, float power ) : void
BlurReflectionHorizontally ( DeviceContextHolder holder, ShaderResourceView view, ShaderResourceView mapsView ) : void
BlurReflectionVertically ( DeviceContextHolder holder, ShaderResourceView view, ShaderResourceView mapsView ) : void
BlurVertically ( DeviceContextHolder holder, ShaderResourceView view, float power ) : void
CalculateGaussian ( float dx, float dy, float force, float &weightsParameter, Vector4 &offsetsParameter ) : void
Dispose ( ) : void
Draw ( DeviceContextHolder holder, ShaderResourceView view ) : void
OnInitialize ( DeviceContextHolder holder ) : void
OnResize ( DeviceContextHolder holder ) : void

Private Methods

Method Description
ComputeGaussian ( float n, float theta ) : float

Method Details

Blur() public method

public Blur ( DeviceContextHolder holder, TargetResourceTexture source, TargetResourceTexture temporary, float power = 1f, int iterations = 1, TargetResourceTexture target = null ) : void
holder DeviceContextHolder
source AcTools.Render.Base.TargetTextures.TargetResourceTexture
temporary AcTools.Render.Base.TargetTextures.TargetResourceTexture
power float
iterations int
target AcTools.Render.Base.TargetTextures.TargetResourceTexture
return void

BlurHorizontally() public method

public BlurHorizontally ( DeviceContextHolder holder, ShaderResourceView view, float power ) : void
holder DeviceContextHolder
view ShaderResourceView
power float
return void

BlurReflectionHorizontally() public method

public BlurReflectionHorizontally ( DeviceContextHolder holder, ShaderResourceView view, ShaderResourceView mapsView ) : void
holder DeviceContextHolder
view ShaderResourceView
mapsView ShaderResourceView
return void

BlurReflectionVertically() public method

public BlurReflectionVertically ( DeviceContextHolder holder, ShaderResourceView view, ShaderResourceView mapsView ) : void
holder DeviceContextHolder
view ShaderResourceView
mapsView ShaderResourceView
return void

BlurVertically() public method

public BlurVertically ( DeviceContextHolder holder, ShaderResourceView view, float power ) : void
holder DeviceContextHolder
view ShaderResourceView
power float
return void

CalculateGaussian() public static method

public static CalculateGaussian ( float dx, float dy, float force, float &weightsParameter, Vector4 &offsetsParameter ) : void
dx float
dy float
force float
weightsParameter float
offsetsParameter Vector4
return void

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( DeviceContextHolder holder, ShaderResourceView view ) : void
holder DeviceContextHolder
view ShaderResourceView
return void

OnInitialize() public method

public OnInitialize ( DeviceContextHolder holder ) : void
holder DeviceContextHolder
return void

OnResize() public method

public OnResize ( DeviceContextHolder holder ) : void
holder DeviceContextHolder
return void