binding class
generic shader binding descriptor. describes the type and location of a vertex binding resource.
shaders can have various bindings such as textures, UBO's, SSBO's, Dynamic UBO's, etc... this class describes the type and either the psl::
static variables
member-functions
Function documentation
uint32_t core:: meta:: shader:: vertex:: binding:: binding_slot() const noexcept
| Returns | the binding slot index of this binding |
|---|
uint32_t core:: meta:: shader:: vertex:: binding:: size() const noexcept
| Returns | the size in bytes of the binding |
|---|
core::gfx::vertex_input_rate core:: meta:: shader:: vertex:: binding:: input_rate() const noexcept
| Returns | the set input rate (per-vertex or per-instance) of this binding. |
|---|
psl::string8_t core:: meta:: shader:: vertex:: binding:: buffer() const noexcept
Details
| Returns | the buffer this binding is bound to. |
|---|
const std::vector<attribute>& core:: meta:: shader:: vertex:: binding:: attributes() const noexcept
| Returns | the attribute collection of this binding. |
|---|
void core:: meta:: shader:: vertex:: binding:: binding_slot(uint32_t value)
Brief
sets the binding slot to bind to in the shader.
| Parameters | |
|---|---|
| value in | the new binding slot. |
void core:: meta:: shader:: vertex:: binding:: size(uint32_t value)
Brief
sets the binding size in bytes.
| Parameters | |
|---|---|
| value in | the new accumulative size in bytes of this binding. |
void core:: meta:: shader:: vertex:: binding:: input_rate(core::gfx::vertex_input_rate value)
Brief
sets the expected input rate of the binding (i.e. should we offset per-vertex, or per-instance in the data)
| Parameters | |
|---|---|
| value in | the new input rate. |
void core:: meta:: shader:: vertex:: binding:: buffer(psl::string8_t value)
Brief
sets the psl::
Details
in core::
| Parameters | |
|---|---|
| value in | the new psl:: |
void core:: meta:: shader:: vertex:: binding:: attributes(const std::vector<attribute>& value)
Brief
sets the collection of attributes that make up this binding.
| Parameters | |
|---|---|
| value in | the attribute collection that will replace the current. |
template<typename S>
void core:: meta:: shader:: vertex:: binding:: serialize(S& s) private
Brief
method that will be invoked by the serialization system.
| Template parameters | |
|---|---|
| S | the type of the serializer/deserializer |
| Parameters | |
| s in | instance of a serializer that you can read from, or write to. |