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

Inheritance: IRenderHelper
Afficher le fichier Open project: gro-ove/actools Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ComputeGaussian ( float n, float theta ) : float

Method Details

Blur() public méthode

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
Résultat void

BlurHorizontally() public méthode

public BlurHorizontally ( DeviceContextHolder holder, ShaderResourceView view, float power ) : void
holder DeviceContextHolder
view ShaderResourceView
power float
Résultat void

BlurReflectionHorizontally() public méthode

public BlurReflectionHorizontally ( DeviceContextHolder holder, ShaderResourceView view, ShaderResourceView mapsView ) : void
holder DeviceContextHolder
view ShaderResourceView
mapsView ShaderResourceView
Résultat void

BlurReflectionVertically() public méthode

public BlurReflectionVertically ( DeviceContextHolder holder, ShaderResourceView view, ShaderResourceView mapsView ) : void
holder DeviceContextHolder
view ShaderResourceView
mapsView ShaderResourceView
Résultat void

BlurVertically() public méthode

public BlurVertically ( DeviceContextHolder holder, ShaderResourceView view, float power ) : void
holder DeviceContextHolder
view ShaderResourceView
power float
Résultat void

CalculateGaussian() public static méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( DeviceContextHolder holder, ShaderResourceView view ) : void
holder DeviceContextHolder
view ShaderResourceView
Résultat void

OnInitialize() public méthode

public OnInitialize ( DeviceContextHolder holder ) : void
holder DeviceContextHolder
Résultat void

OnResize() public méthode

public OnResize ( DeviceContextHolder holder ) : void
holder DeviceContextHolder
Résultat void