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¶
Derived¶
MetalBindlessHeap, VulkanBindlessHeap
Implements¶
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¶
MaxSamplers¶
public const uint MaxSamplers = 256
Field Value¶
MaxStorageImages¶
public const uint MaxStorageImages = 256
Field Value¶
PushConstantBytes¶
The size of the push constants of every pipeline.
public const uint PushConstantBytes = 128
Field Value¶
Properties¶
SampledImageCount¶
public abstract int SampledImageCount { get; }
Property Value¶
Methods¶
AddSampledImage(GpuImage)¶
The index to read image by in a shader.
public uint AddSampledImage(GpuImage image)
Parameters¶
image GpuImage
Returns¶
AddSampledImage(ImageView)¶
public abstract uint AddSampledImage(ImageView view)
Parameters¶
view ImageView
Returns¶
AddSampler(GpuSampler)¶
public abstract uint AddSampler(GpuSampler sampler)
Parameters¶
sampler GpuSampler
Returns¶
AddStorageImage(ImageView)¶
public abstract uint AddStorageImage(ImageView view)
Parameters¶
view ImageView
Returns¶
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