Table of Contents

Class VertexBuffer

Namespace
ReFuel.Graphics
Assembly
ReFuel.dll
[Obsolete("Use the new buffer API instead.")]
public class VertexBuffer : IDisposable
Inheritance
VertexBuffer
Implements
Inherited Members

Constructors

VertexBuffer(IEnumerable<VertexAttribute>)

public VertexBuffer(IEnumerable<VertexAttribute> attributes)

Parameters

attributes IEnumerable<VertexAttribute>

Properties

Attributes

public IReadOnlyList<VertexAttribute> Attributes { get; }

Property Value

IReadOnlyList<VertexAttribute>

Pointer

public nint Pointer { get; }

Property Value

nint

Size

public long Size { get; }

Property Value

long

Span

public Span<byte> Span { get; }

Property Value

Span<byte>

Methods

AsSpan<T>()

public Span<T> AsSpan<T>() where T : unmanaged

Returns

Span<T>

Type Parameters

T

Dispose()

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

public void Dispose()

~VertexBuffer()

protected ~VertexBuffer()

GetAccessor<T>(int)

public AttributeAccessor<T> GetAccessor<T>(int attributeIndex) where T : unmanaged

Parameters

attributeIndex int

Returns

AttributeAccessor<T>

Type Parameters

T

Resize(long)

public void Resize(long size)

Parameters

size long