Table of Contents

Class ElementBuffer<T>

Namespace
ReFuel.Graphics
Assembly
ReFuel.dll
[Obsolete("Use the new BufferResource API instead.")]
public abstract class ElementBuffer<T> : ElementBuffer, IDisposable where T : unmanaged

Type Parameters

T
Inheritance
ElementBuffer<T>
Implements
Derived
Inherited Members

Constructors

ElementBuffer()

protected ElementBuffer()

ElementBuffer(ReadOnlySpan<T>)

protected ElementBuffer(ReadOnlySpan<T> source)

Parameters

source ReadOnlySpan<T>

ElementBuffer(T[], bool)

protected ElementBuffer(T[] source, bool copy = false)

Parameters

source T[]
copy bool

Properties

Count

public override int Count { get; }

Property Value

int

this[int]

public ref T this[int index] { get; }

Parameters

index int

Property Value

T

Methods

AsSpan()

public Span<T> AsSpan()

Returns

Span<T>

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Resize(int)

public void Resize(int count)

Parameters

count int