Table of Contents

Class AlignedBuffer

Namespace
ReFuel.Collections
Assembly
ReFuel.Common.dll

A write only buffer that is intended for aligned memory operations regarding graphics APIs. Not intended for anything useful outside of that.

public class AlignedBuffer
Inheritance
AlignedBuffer
Inherited Members

Properties

Capacity

public int Capacity { get; }

Property Value

int

Granularity

public int Granularity { get; set; }

Property Value

int

Head

public ref byte Head { get; }

Property Value

byte

Size

public int Size { get; }

Property Value

int

Methods

Align(int)

public void Align(int alignment)

Parameters

alignment int

Clear(bool)

public void Clear(bool yieldMemory = false)

Parameters

yieldMemory bool

Write<T>(ReadOnlySpan<T>)

public void Write<T>(ReadOnlySpan<T> data) where T : unmanaged

Parameters

data ReadOnlySpan<T>

Type Parameters

T

Write<T>(in T)

public void Write<T>(in T data) where T : unmanaged

Parameters

data T

Type Parameters

T