Skip to content

Class BindlessHeap

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

The one set of resources every pipeline sees: arrays of sampled images, samplers and storage images that shaders index with integers, plus the push constants. Slot 0 of the images and samplers is a white texel and a linear repeat sampler, so an unset index still reads something sane; slot 0 of the storage images is never handed out (0 means "none").

public abstract class BindlessHeap : IDisposable

Inheritance

object ← BindlessHeap

Derived

MetalBindlessHeap, VulkanBindlessHeap

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Fields

MaxSampledImages

public const uint MaxSampledImages = 16384

Field Value

uint

MaxSamplers

public const uint MaxSamplers = 256

Field Value

uint

MaxStorageImages

public const uint MaxStorageImages = 256

Field Value

uint

PushConstantBytes

The size of the push constants of every pipeline.

public const uint PushConstantBytes = 128

Field Value

uint

Properties

SampledImageCount

public abstract int SampledImageCount { get; }

Property Value

int

Methods

AddSampledImage(GpuImage)

The index to read image by in a shader.

public uint AddSampledImage(GpuImage image)

Parameters

image GpuImage

Returns

uint

AddSampledImage(ImageView)

public abstract uint AddSampledImage(ImageView view)

Parameters

view ImageView

Returns

uint

AddSampler(GpuSampler)

public abstract uint AddSampler(GpuSampler sampler)

Parameters

sampler GpuSampler

Returns

uint

AddStorageImage(ImageView)

public abstract uint AddStorageImage(ImageView view)

Parameters

view ImageView

Returns

uint

Dispose()

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

public abstract void Dispose()

RemoveSampledImage(uint)

public abstract void RemoveSampledImage(uint index)

Parameters

index uint

RemoveSampler(uint)

public abstract void RemoveSampler(uint index)

Parameters

index uint

RemoveStorageImage(uint)

public abstract void RemoveStorageImage(uint index)

Parameters

index uint