Class Technique
- Namespace
- HelixToolkit.SharpDX.Shaders
- Assembly
- HelixToolkit.SharpDX.dll
public sealed class Technique : DisposeObject, IRenderTechnique, IDisposable, IGUID
- Inheritance
-
Technique
- Implements
- Inherited Members
Constructors
Technique(TechniqueDescription, Device1?, IEffectsManager?)
public Technique(TechniqueDescription description, Device1? device, IEffectsManager? manager)
Parameters
descriptionTechniqueDescriptiondeviceDevice1managerIEffectsManager
Properties
ConstantBufferPool
public IConstantBufferPool? ConstantBufferPool { get; }
Property Value
Description
Gets or sets the description.
public TechniqueDescription Description { get; }
Property Value
- TechniqueDescription
The description.
Device
public Device1? Device { get; }
Property Value
- Device1
EffectsManager
public IEffectsManager? EffectsManager { get; }
Property Value
GUID
Gets the unique identifier.
public Guid GUID { get; }
Property Value
- Guid
The unique identifier.
IsNull
Gets a value indicating whether this Technique is null.
public bool IsNull { get; }
Property Value
- bool
trueif this Technique is null; otherwise,false.
this[int]
public ShaderPass this[int index] { get; }
Parameters
indexint
Property Value
this[string]
public ShaderPass this[string name] { get; }
Parameters
namestring
Property Value
Layout
public InputLayoutProxy? Layout { get; }
Property Value
Name
public string Name { get; }
Property Value
NullTechnique
public static IRenderTechnique NullTechnique { get; }
Property Value
ShaderPassNames
public IEnumerable<string> ShaderPassNames { get; }
Property Value
Methods
AddPass(ShaderPassDescription)
Adds the pass.
public bool AddPass(ShaderPassDescription description)
Parameters
descriptionShaderPassDescriptionThe description.
Returns
GetPass(int)
public ShaderPass GetPass(int index)
Parameters
indexint
Returns
GetPass(string)
public ShaderPass GetPass(string name)
Parameters
namestring
Returns
OnDispose(bool)
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesbool
RemovePass(string)
public bool RemovePass(string name)
Parameters
namestring