Table of Contents

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

configuration EffectsManagerConfiguration

EffectsManager(int)

Initializes a new instance of the EffectsManager class.

public EffectsManager(int adapterIndex)

Parameters

adapterIndex int

Index of the adapter.

Properties

AdapterIndex

public int AdapterIndex { get; }

Property Value

int

ConstantBufferPool

public IConstantBufferPool? ConstantBufferPool { get; }

Property Value

IConstantBufferPool

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

bool

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

bool

this[string]

Gets the IRenderTechnique with the specified name.

public IRenderTechnique? this[string name] { get; }

Parameters

name string

The name.

Property Value

IRenderTechnique

The IRenderTechnique.

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

IEnumerable<string>

ShaderManager

public IShaderPoolManager? ShaderManager { get; }

Property Value

IShaderPoolManager

StateManager

public IStatePoolManager? StateManager { get; }

Property Value

IStatePoolManager

StructArrayPool

public IStructArrayPool? StructArrayPool { get; }

Property Value

IStructArrayPool

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

description TechniqueDescription

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

string

GetTechnique(string)

Gets the technique.

public IRenderTechnique? GetTechnique(string name)

Parameters

name string

The name.

Returns

IRenderTechnique

Exceptions

Exception

Manager has not been initialized.

ArgumentException

HasTechnique(string)

Determines whether the specified name has technique.

public bool HasTechnique(string name)

Parameters

name string

The name.

Returns

bool

true if the specified name has technique; otherwise, false.

OnDispose(bool)

[SuppressMessage("Microsoft.Usage", "CA2213", Justification = "False positive.")]
protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

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

name string

Returns

bool

Events

DisposingResources

Occurs when [on dispose resources].

public event EventHandler<EventArgs>? DisposingResources

Event Type

EventHandler<EventArgs>

InvalidateRender

Occurs when [on invalidate renderer].

public event EventHandler<EventArgs>? InvalidateRender

Event Type

EventHandler<EventArgs>

Reinitialized

Occurs when [device created].

public event EventHandler<EventArgs>? Reinitialized

Event Type

EventHandler<EventArgs>