Class LayoutPool
- Namespace
- HelixToolkit.SharpDX.ShaderManager
- Assembly
- HelixToolkit.SharpDX.dll
Pool to store and share shader layouts. Do not dispose layout object externally.
public sealed class LayoutPool : ReferenceCountedDictionaryPool<byte[], InputLayoutProxy, InputLayoutDescription>, IDisposable
- Inheritance
-
LayoutPool
- Implements
- Inherited Members
Constructors
LayoutPool(Device)
Initializes a new instance of the LayoutPool class.
public LayoutPool(Device device)
Parameters
deviceDeviceThe device.
Methods
CanCreate(ref byte[], ref InputLayoutDescription)
protected override bool CanCreate(ref byte[] key, ref InputLayoutDescription argument)
Parameters
keybyte[]argumentInputLayoutDescription
Returns
OnCreate(ref byte[], ref InputLayoutDescription)
protected override InputLayoutProxy? OnCreate(ref byte[] key, ref InputLayoutDescription description)
Parameters
keybyte[]descriptionInputLayoutDescription