Class ShaderPool
- Namespace
- HelixToolkit.SharpDX.ShaderManager
- Assembly
- HelixToolkit.SharpDX.dll
Pool to store and share shaders. Do not dispose shader object externally.
public sealed class ShaderPool : ReferenceCountedDictionaryPool<byte[], ShaderBase, ShaderDescription>, IDisposable
- Inheritance
-
ShaderPool
- Implements
- Inherited Members
Constructors
ShaderPool(Device, IConstantBufferPool)
Initializes a new instance of the ShaderPool class.
public ShaderPool(Device device, IConstantBufferPool cbPool)
Parameters
deviceDeviceThe device.
cbPoolIConstantBufferPoolThe cb pool.
Properties
ConstantBufferPool
Gets or sets the constant buffer pool.
public IConstantBufferPool ConstantBufferPool { get; }
Property Value
- IConstantBufferPool
The constant buffer pool.
Methods
CanCreate(ref byte[], ref ShaderDescription)
protected override bool CanCreate(ref byte[] key, ref ShaderDescription argument)
Parameters
keybyte[]argumentShaderDescription
Returns
OnCreate(ref byte[], ref ShaderDescription)
protected override ShaderBase? OnCreate(ref byte[] key, ref ShaderDescription description)
Parameters
keybyte[]descriptionShaderDescription