Class EffectsManager
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
Shader and Technique manager
public class EffectsManager : DisposeObject, IEffectsManager, IDeviceResources, IDevice3DResources, IDevice2DResources, IDisposable
- Inheritance
-
EffectsManager
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
EffectsManager()
Initializes a new instance of the EffectsManager class.
public EffectsManager()
EffectsManager(EffectsManagerConfiguration)
public EffectsManager(EffectsManagerConfiguration configuration)
Parameters
configurationEffectsManagerConfiguration
EffectsManager(int)
Initializes a new instance of the EffectsManager class.
public EffectsManager(int adapterIndex)
Parameters
adapterIndexintIndex of the adapter.
Properties
AdapterIndex
public int AdapterIndex { get; }
Property Value
ConstantBufferPool
public IConstantBufferPool? ConstantBufferPool { get; }
Property Value
Device
public Device1? Device { get; }
Property Value
- Device1
Device2D
Gets the device2d.
public Device? Device2D { get; }
Property Value
- Device
The device2 d.
DeviceContext2D
Gets or sets the device2 d context.
public DeviceContext? DeviceContext2D { get; }
Property Value
- DeviceContext
The device2 d context.
DeviceContextPool
Gets the device context pool.
public IDeviceContextPool? DeviceContextPool { get; }
Property Value
- IDeviceContextPool
The device context pool.
DirectWriteFactory
Gets the direct write factory.
public Factory? DirectWriteFactory { get; }
Property Value
- Factory
The direct write factory.
DriverType
public DriverType DriverType { get; }
Property Value
- DriverType
EnableSoftwareRendering
public bool EnableSoftwareRendering { get; }
Property Value
Factory2D
Gets the factory2 d.
public Factory1? Factory2D { get; }
Property Value
- Factory1
The factory2 d.
GeometryBufferManager
Gets the geometry buffer manager.
public IGeometryBufferManager? GeometryBufferManager { get; }
Property Value
- IGeometryBufferManager
The geometry buffer manager.
Initialized
public bool Initialized { get; }
Property Value
this[string]
Gets the IRenderTechnique with the specified name.
public IRenderTechnique? this[string name] { get; }
Parameters
namestringThe name.
Property Value
MaterialTextureManager
Gets the material texture manager.
public ITextureResourceManager? MaterialTextureManager { get; }
Property Value
- ITextureResourceManager
The material texture manager.
MaterialVariableManager
Gets the material variable manager.
public IMaterialVariablePool? MaterialVariableManager { get; }
Property Value
- IMaterialVariablePool
The material variable manager.
RenderTechniques
public IEnumerable<string> RenderTechniques { get; }
Property Value
ShaderManager
public IShaderPoolManager? ShaderManager { get; }
Property Value
StateManager
public IStatePoolManager? StateManager { get; }
Property Value
StructArrayPool
public IStructArrayPool? StructArrayPool { get; }
Property Value
WICImgFactory
Gets the wic img factory.
public ImagingFactory? WICImgFactory { get; }
Property Value
- ImagingFactory
The wic img factory.
Methods
AddTechnique(TechniqueDescription)
public void AddTechnique(TechniqueDescription description)
Parameters
descriptionTechniqueDescription
DisposeAllResources()
Disposes all resources. This is used to handle such as DeviceLost or DeviceRemoved Error
public void DisposeAllResources()
GetResourceCountSummary()
Outputs the resource cout summary.
public string GetResourceCountSummary()
Returns
GetTechnique(string)
Gets the technique.
public IRenderTechnique? GetTechnique(string name)
Parameters
namestringThe name.
Returns
Exceptions
- Exception
Manager has not been initialized.
- ArgumentException
HasTechnique(string)
Determines whether the specified name has technique.
public bool HasTechnique(string name)
Parameters
namestringThe name.
Returns
- bool
trueif the specified name has technique; otherwise,false.
OnDispose(bool)
[SuppressMessage("Microsoft.Usage", "CA2213", Justification = "False positive.")]
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesbool
RaiseInvalidateRender()
Invalidates the renderer.
public void RaiseInvalidateRender()
Reinitialize()
Reinitializes all resources after calling DisposeAllResources().
public void Reinitialize()
RemoveAllTechniques()
Removes all technique.
public void RemoveAllTechniques()
RemoveTechnique(string)
public bool RemoveTechnique(string name)
Parameters
namestring
Returns
Events
DisposingResources
Occurs when [on dispose resources].
public event EventHandler<EventArgs>? DisposingResources
Event Type
InvalidateRender
Occurs when [on invalidate renderer].
public event EventHandler<EventArgs>? InvalidateRender
Event Type
Reinitialized
Occurs when [device created].
public event EventHandler<EventArgs>? Reinitialized