DescriptorSetWriter
- Namespace: Turian.Engine.Core
- Source File: DescriptorSetWriter.cs
Helper class for writing descriptor sets used for Vulkan rendering.
Remarks
Initializes a new instance of the DescriptorSetWriter class.
Public Methods
WriteBuffer
public DescriptorSetWriter WriteBuffer(uint binding, DescriptorBufferInfo bufferInfo)
Writes a buffer descriptor to the descriptor set.
Parameters:
binding(uint): The binding point within the descriptor set layout.bufferInfo(DescriptorBufferInfo): The descriptor buffer information to write.
Returns: DescriptorSetWriter
- The
DescriptorSetWriterinstance.
WriteImage
public DescriptorSetWriter WriteImage(uint binding, DescriptorImageInfo imageInfo)
Writes an image descriptor to the descriptor set.
Parameters:
binding(uint): The binding point within the descriptor set layout.imageInfo(DescriptorImageInfo): The descriptor image information to write.
Returns: DescriptorSetWriter
- The
DescriptorSetWriterinstance.
Build
public bool Build(DescriptorPool pool, Silk.NET.Vulkan.DescriptorSetLayout layout, DescriptorSet set)
Builds and updates a descriptor set.
Parameters:
pool(DescriptorPool): The descriptor pool used for allocation.layout(Silk.NET.Vulkan.DescriptorSetLayout): The descriptor set layout.set(DescriptorSet): The descriptor set to update and allocate.
Returns: bool
- True if the descriptor set was successfully updated and allocated, otherwise false.