Table of Contents

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

device Device

The device.

cbPool IConstantBufferPool

The 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

key byte[]
argument ShaderDescription

Returns

bool

OnCreate(ref byte[], ref ShaderDescription)

protected override ShaderBase? OnCreate(ref byte[] key, ref ShaderDescription description)

Parameters

key byte[]
description ShaderDescription

Returns

ShaderBase