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
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
ClearMapping()
public void ClearMapping()
GetMapping(int)
public MappingType? GetMapping(int slot)
Parameters
slotint
Returns
- MappingType
GetMapping(string)
public MappingType? GetMapping(string name)
Parameters
namestring
Returns
- MappingType
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.
RemoveMapping(int)
public void RemoveMapping(int slot)
Parameters
slotint
RemoveMapping(string)
public void RemoveMapping(string name)
Parameters
namestring
TryGetBindSlot(string)
Try get slot by name. If failed, return -1;
public int TryGetBindSlot(string name)
Parameters
namestring
Returns
TryGetName(int)
Try to get name by register slot. If failed, return empty string;
public string TryGetName(int slot)
Parameters
slotint