Table of Contents

Class MappingProxy<MappingType>

Namespace
HelixToolkit.SharpDX.Shaders
Assembly
HelixToolkit.SharpDX.dll
public sealed class MappingProxy<MappingType> : DisposeObject, IDisposable where MappingType : class

Type Parameters

MappingType
Inheritance
MappingProxy<MappingType>
Implements
Inherited Members

Properties

Count

public int Count { get; }

Property Value

int

Mappings

public KeyValuePair<int, MappingType>[] Mappings { get; }

Property Value

KeyValuePair<int, MappingType>[]

Methods

AddMapping(string, int, MappingType)

public void AddMapping(string name, int slot, MappingType mapping)

Parameters

name string
slot int
mapping MappingType

ClearMapping()

public void ClearMapping()

GetMapping(int)

public MappingType? GetMapping(int slot)

Parameters

slot int

Returns

MappingType

GetMapping(string)

public MappingType? GetMapping(string name)

Parameters

name string

Returns

MappingType

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.

RemoveMapping(int)

public void RemoveMapping(int slot)

Parameters

slot int

RemoveMapping(string)

public void RemoveMapping(string name)

Parameters

name string

TryGetBindSlot(string)

Try get slot by name. If failed, return -1;

public int TryGetBindSlot(string name)

Parameters

name string

Returns

int

TryGetName(int)

Try to get name by register slot. If failed, return empty string;

public string TryGetName(int slot)

Parameters

slot int

Returns

string