Table of Contents

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

context DeviceContextProxy

The context.

count int

The 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

context DeviceContextProxy

The context.

data nint

The data.

countByBytes int

The count by bytes.

offsetByBytes int

The offset by bytes.

minBufferCountByBytes int

The 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

context DeviceContextProxy
data IList<T>
count int

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

context DeviceContextProxy
data IList<T>
count int
offset int
minBufferCount int

Used to initialize a buffer which size is Max(count, minBufferCount). Only used in dynamic buffer.

Type Parameters

T