Interface for a descriptor set.
More...
#include <DescriptorSet.h>
|
void | update (unsigned int binding, const IBuffer &buffer, unsigned int buffer_element=0, unsigned int elements=0, unsigned int first_descriptor=0) const |
| Updates a constant buffer within the IDescriptorSet.
|
|
void | update (unsigned int binding, const IImage &texture, unsigned int descriptor=0, unsigned int first_level=0, unsigned int levels=0, unsigned int first_layer=0, unsigned int layers=0) const |
| Updates a texture within the current descriptor set.
|
|
void | update (unsigned int binding, const ISampler &sampler, unsigned int descriptor=0) const |
| Updates a sampler within the current descriptor set.
|
|
void | attach (unsigned int binding, const IImage &image) const |
| Attaches an image as an input attachment to a descriptor bound at binding .
|
|
Interface for a descriptor set.
◆ attach()
void spark::render::IDescriptorSet::attach |
( |
unsigned int | binding, |
|
|
const IImage & | image ) const |
|
inline |
Attaches an image as an input attachment to a descriptor bound at binding
.
- Parameters
-
binding | The input attachment binding point. |
image | The image to bind to the input attachment descriptor. |
◆ update() [1/3]
void spark::render::IDescriptorSet::update |
( |
unsigned int | binding, |
|
|
const IBuffer & | buffer, |
|
|
unsigned int | buffer_element = 0, |
|
|
unsigned int | elements = 0, |
|
|
unsigned int | first_descriptor = 0 ) const |
|
inline |
Updates a constant buffer within the IDescriptorSet.
- Parameters
-
binding | The buffer binding point. |
buffer | The constant buffer to write to the IDescriptorSet. |
buffer_element | The index of the first element to write to the IDescriptorSet. |
elements | The number of elements to write to the IDescriptorSet, or 0 to write all elements starting from buffer_element . |
first_descriptor | The index of the first descriptor in the descriptor array to update. |
◆ update() [2/3]
void spark::render::IDescriptorSet::update |
( |
unsigned int | binding, |
|
|
const IImage & | texture, |
|
|
unsigned int | descriptor = 0, |
|
|
unsigned int | first_level = 0, |
|
|
unsigned int | levels = 0, |
|
|
unsigned int | first_layer = 0, |
|
|
unsigned int | layers = 0 ) const |
|
inline |
Updates a texture within the current descriptor set.
- Parameters
-
binding | The binding point of the texture. |
texture | The texture to write to the descriptor set. |
descriptor | The index of the descriptor in the descriptor array to bind the texture to. |
first_level | 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 . |
first_layer | 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 . |
◆ update() [3/3]
void spark::render::IDescriptorSet::update |
( |
unsigned int | binding, |
|
|
const ISampler & | sampler, |
|
|
unsigned int | descriptor = 0 ) const |
|
inline |
Updates a sampler within the current descriptor set.
- Parameters
-
binding | The binding point of the sampler. |
sampler | The sampler to write to the descriptor set. |
descriptor | The index of the descriptor in the descriptor array to bind the sampler to. |