Table of Contents

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

description TechniqueDescription
device Device1
manager IEffectsManager

Properties

ConstantBufferPool

public IConstantBufferPool? ConstantBufferPool { get; }

Property Value

IConstantBufferPool

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

IEffectsManager

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

true if this Technique is null; otherwise, false.

this[int]

public ShaderPass this[int index] { get; }

Parameters

index int

Property Value

ShaderPass

this[string]

public ShaderPass this[string name] { get; }

Parameters

name string

Property Value

ShaderPass

Layout

public InputLayoutProxy? Layout { get; }

Property Value

InputLayoutProxy

Name

public string Name { get; }

Property Value

string

NullTechnique

public static IRenderTechnique NullTechnique { get; }

Property Value

IRenderTechnique

ShaderPassNames

public IEnumerable<string> ShaderPassNames { get; }

Property Value

IEnumerable<string>

Methods

AddPass(ShaderPassDescription)

Adds the pass.

public bool AddPass(ShaderPassDescription description)

Parameters

description ShaderPassDescription

The description.

Returns

bool

GetPass(int)

public ShaderPass GetPass(int index)

Parameters

index int

Returns

ShaderPass

GetPass(string)

public ShaderPass GetPass(string name)

Parameters

name string

Returns

ShaderPass

OnDispose(bool)

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

RemovePass(string)

public bool RemovePass(string name)

Parameters

name string

Returns

bool