Table of Contents

Struct BufferMapping<T>

Namespace
ReFuel.Graphics.OpenGL
Assembly
ReFuel.dll

Temporarily map an OpenGL buffer to memory.

public ref struct BufferMapping<T> where T : unmanaged

Type Parameters

T

The type.

Inherited Members

Constructors

BufferMapping(int, int, int)

public BufferMapping(int buffer, int offset, int count)

Parameters

buffer int
offset int
count int

Properties

Base

public readonly nint Base { get; }

Property Value

nint

BufferHandle

public readonly int BufferHandle { get; }

Property Value

int

Count

public readonly int Count { get; }

Property Value

int

IsDisposed

public readonly bool IsDisposed { get; }

Property Value

bool

this[int]

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

Parameters

index int

Property Value

T

this[Range]

public Span<T> this[Range range] { get; }

Parameters

range Range

Property Value

Span<T>

Length

public readonly int Length { get; }

Property Value

int

Offset

public readonly int Offset { get; }

Property Value

int

Methods

AsSpan()

public Span<T> AsSpan()

Returns

Span<T>

Dispose()

public void Dispose()