LiteFX::Rendering::Backends::VulkanDescriptorSet::update¶
update overloads
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Updates an acceleration structure within the current descriptor set.
[[dllimport, dllexport]] virtual void update(
UInt32 binding,
IVulkanAccelerationStructure const& accelerationStructure,
UInt32 descriptor = 0) const override;
Updates one or more sampler descriptors within the current descriptor set.
[[dllimport, dllexport]] virtual void update(
UInt32 binding,
IVulkanSampler const& sampler,
UInt32 descriptor = 0) const override;
Updates an acceleration structure within the current descriptor set.
[[dllimport]] virtual void update(
UInt32 binding,
acceleration_structure_type const& accelerationStructure,
UInt32 descriptor = 0) const = 0;
Updates one or more sampler descriptors within the current descriptor set.
[[dllimport]] virtual void update(
UInt32 binding,
sampler_type const& sampler,
UInt32 descriptor = 0) const = 0;
Updates one or more buffer descriptors within the current descriptor set.
[[dllimport, dllexport]] virtual void update(
UInt32 binding,
IVulkanBuffer const& buffer,
UInt32 bufferElement = 0,
UInt32 elements = 0,
UInt32 firstDescriptor = 0,
Format texelFormat = Format::None) const override;
Updates one or more buffer descriptors within the current descriptor set.
[[dllimport]] virtual void update(
UInt32 binding,
buffer_type const& buffer,
UInt32 bufferElement = 0,
UInt32 elements = 0,
UInt32 firstDescriptor = 0,
Format texelFormat = Format::None) const = 0;
Updates one or more texture descriptors within the current descriptor set.
[[dllimport, dllexport]] virtual void update(
UInt32 binding,
IVulkanImage const& texture,
UInt32 descriptor = 0,
UInt32 firstLevel = 0,
UInt32 levels = 0,
UInt32 firstLayer = 0,
UInt32 layers = 0) const override;
Updates one or more texture descriptors within the current descriptor set.
[[dllimport]] virtual void update(
UInt32 binding,
image_type const& texture,
UInt32 descriptor = 0,
UInt32 firstLevel = 0,
UInt32 levels = 0,
UInt32 firstLayer = 0,
UInt32 layers = 0) const = 0;
Parameters¶
| Name | Description |
|---|---|
| binding | The acceleration structure binding point. |
| accelerationStructure | The acceleration structure to write to the descriptor set. |
| descriptor | The index of the descriptor in the descriptor array to bind the acceleration structure to. |
| sampler | The sampler to write to the descriptor set. |
| buffer | The buffer to write to the descriptor set. |
| bufferElement | The index of the first element in the buffer to bind to the descriptor set. |
| elements | The number of elements from the buffer to bind to the descriptor set. A value of 0 binds all available elements, starting at bufferElement. |
| firstDescriptor | The index of the first descriptor in the descriptor array to update. |
| texelFormat | The format used to read a texel buffer. Required if binding binds a texel buffer and ignored otherwise. |
| texture | The texture to write to the descriptor set. |
| firstLevel | The index of the first mip-map level to bind. |
| levels | The number of mip-map levels to bind. A value of 0 binds all available levels, starting at firstLevel. |
| firstLayer | The index of the first layer to bind. |
| layers | The number of layers to bind. A value of 0 binds all available layers, starting at firstLayer. |