Class VulkanBindlessHeap¶
Namespace: Apogee.Graphics.Vulkan
Assembly: Apogee.Graphics.dll
The one descriptor set every pipeline uses: arrays of sampled images, samplers and storage images that shaders index with plain integers (carried in push constants or in buffers). Entries are written once and stay valid until freed; slot 0 of the images and the samplers is a white texel and a linear repeat sampler, so an unset index still reads something sane.
public sealed class VulkanBindlessHeap : BindlessHeap, IDisposable
Inheritance¶
object ← BindlessHeap ← VulkanBindlessHeap
Implements¶
Inherited Members¶
BindlessHeap.MaxSampledImages, BindlessHeap.MaxSamplers, BindlessHeap.MaxStorageImages, BindlessHeap.PushConstantBytes, BindlessHeap.AddSampledImage(GpuImage), BindlessHeap.AddSampledImage(ImageView), BindlessHeap.RemoveSampledImage(uint), BindlessHeap.AddSampler(GpuSampler), BindlessHeap.RemoveSampler(uint), BindlessHeap.AddStorageImage(ImageView), BindlessHeap.RemoveStorageImage(uint), BindlessHeap.SampledImageCount, BindlessHeap.Dispose(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Layout¶
public VkDescriptorSetLayout Layout { get; }
Property Value¶
VkDescriptorSetLayout
PipelineLayout¶
The layout of every pipeline: the bindless set at 0 and PushConstantBytes of push constants for all stages.
public VkPipelineLayout PipelineLayout { get; }
Property Value¶
VkPipelineLayout
SampledImageCount¶
public override int SampledImageCount { get; }
Property Value¶
Set¶
public VkDescriptorSet Set { get; }
Property Value¶
VkDescriptorSet
Methods¶
AddSampledImage(ImageView)¶
public override uint AddSampledImage(ImageView view)
Parameters¶
view ImageView
Returns¶
AddSampler(GpuSampler)¶
public override uint AddSampler(GpuSampler sampler)
Parameters¶
sampler GpuSampler
Returns¶
AddStorageImage(ImageView)¶
public override uint AddStorageImage(ImageView view)
Parameters¶
view ImageView
Returns¶
Dispose()¶
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()
RemoveSampledImage(uint)¶
public override void RemoveSampledImage(uint index)
Parameters¶
index uint
RemoveSampler(uint)¶
public override void RemoveSampler(uint index)
Parameters¶
index uint
RemoveStorageImage(uint)¶
public override void RemoveStorageImage(uint index)
Parameters¶
index uint