Table of Contents

Class StructuredBufferProxy

Namespace
HelixToolkit.SharpDX.Utilities
Assembly
HelixToolkit.SharpDX.dll
public sealed class StructuredBufferProxy : DynamicBufferProxy, IElementsBufferProxy, IBufferProxy, IDisposable
Inheritance
StructuredBufferProxy
Implements
Inherited Members

Constructors

StructuredBufferProxy(int, bool)

Initializes a new instance of the StructuredBufferProxy class.

public StructuredBufferProxy(int structureSize, bool lazyResize = true)

Parameters

structureSize int

Size of the structure.

lazyResize bool

If existing data size is smaller than buffer size, reuse existing. Otherwise create a new buffer with exact same size

Properties

SRV

public ShaderResourceViewProxy? SRV { get; }

Property Value

ShaderResourceViewProxy

Methods

OnBufferChanged(Buffer)

protected override void OnBufferChanged(Buffer newBuffer)

Parameters

newBuffer Buffer

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.

Operators

implicit operator ShaderResourceViewProxy?(StructuredBufferProxy?)

public static implicit operator ShaderResourceViewProxy?(StructuredBufferProxy? proxy)

Parameters

proxy StructuredBufferProxy

Returns

ShaderResourceViewProxy

implicit operator ShaderResourceView?(StructuredBufferProxy?)

public static implicit operator ShaderResourceView?(StructuredBufferProxy? proxy)

Parameters

proxy StructuredBufferProxy

Returns

ShaderResourceView