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
structureSizeintSize of the structure.
lazyResizeboolIf 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
Methods
OnBufferChanged(Buffer)
protected override void OnBufferChanged(Buffer newBuffer)
Parameters
newBufferBuffer
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf 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
proxyStructuredBufferProxy
Returns
implicit operator ShaderResourceView?(StructuredBufferProxy?)
public static implicit operator ShaderResourceView?(StructuredBufferProxy? proxy)
Parameters
proxyStructuredBufferProxy
Returns
- ShaderResourceView