Struct BufferMapping<T>
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
Properties
Base
public readonly nint Base { get; }
Property Value
BufferHandle
public readonly int BufferHandle { get; }
Property Value
Count
public readonly int Count { get; }
Property Value
IsDisposed
public readonly bool IsDisposed { get; }
Property Value
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
Offset
public readonly int Offset { get; }
Property Value
Methods
AsSpan()
public Span<T> AsSpan()
Returns
- Span<T>
Dispose()
public void Dispose()