Table of Contents

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

device Device

The device.

Methods

CanCreate(ref byte[], ref InputLayoutDescription)

protected override bool CanCreate(ref byte[] key, ref InputLayoutDescription argument)

Parameters

key byte[]
argument InputLayoutDescription

Returns

bool

OnCreate(ref byte[], ref InputLayoutDescription)

protected override InputLayoutProxy? OnCreate(ref byte[] key, ref InputLayoutDescription description)

Parameters

key byte[]
description InputLayoutDescription

Returns

InputLayoutProxy