Interface IElementsBufferProxy
- Namespace
- HelixToolkit.SharpDX.Utilities
- Assembly
- HelixToolkit.SharpDX.dll
public interface IElementsBufferProxy : IBufferProxy, IDisposable
- Inherited Members
Methods
CreateBuffer(DeviceContextProxy, int)
Creates the buffer with size = count * structure size;
void CreateBuffer(DeviceContextProxy context, int count)
Parameters
contextDeviceContextProxyThe context.
countintThe count.
DisposeAndClear()
Dispose and clear internal buffers. Does not dispose this object.
void DisposeAndClear()
UploadDataToBuffer(DeviceContextProxy, nint, int, int, int)
Uploads the data to buffer using data pointer.
void UploadDataToBuffer(DeviceContextProxy context, nint data, int countByBytes, int offsetByBytes, int minBufferCountByBytes = 0)
Parameters
contextDeviceContextProxyThe context.
datanintThe data.
countByBytesintThe count by bytes.
offsetByBytesintThe offset by bytes.
minBufferCountByBytesintThe minimum buffer count by bytes.
UploadDataToBuffer<T>(DeviceContextProxy, IList<T>, int)
void UploadDataToBuffer<T>(DeviceContextProxy context, IList<T> data, int count) where T : unmanaged
Parameters
contextDeviceContextProxydataIList<T>countint
Type Parameters
T
UploadDataToBuffer<T>(DeviceContextProxy, IList<T>, int, int, int)
void UploadDataToBuffer<T>(DeviceContextProxy context, IList<T> data, int count, int offset, int minBufferCount = 0) where T : unmanaged
Parameters
contextDeviceContextProxydataIList<T>countintoffsetintminBufferCountintUsed to initialize a buffer which size is Max(count, minBufferCount). Only used in dynamic buffer.
Type Parameters
T