class
attributevertex attribute description.
static variables
member-functions
Function documentation
uint32_t core:: meta:: shader:: vertex:: attribute:: location() const noexcept
Brief
returns the binding location of the attribute.
Returns | the binding location of the attribute. |
---|
void core:: meta:: shader:: vertex:: attribute:: location(uint32_t value)
Brief
sets the binding location of the attribute.
Parameters | |
---|---|
value in | the location this attribute will bind to. |
core::gfx::format core:: meta:: shader:: vertex:: attribute:: format() const noexcept
Brief
returns the format that this binding location should be using.
Details
the format is what will be checked to see if you can bind the external resource to this binding spot.
Returns | the format that this binding location should be using. |
---|
void core:: meta:: shader:: vertex:: attribute:: format(core::gfx::format value)
Brief
sets the format of this attribute.
Parameters | |
---|---|
value in | the format of this attribute. |
uint32_t core:: meta:: shader:: vertex:: attribute:: offset() const noexcept
Brief
returns the offset in bytes starting from the binding location.
Returns | the offset in bytes starting from the binding location. |
---|
void core:: meta:: shader:: vertex:: attribute:: offset(uint32_t value)
Brief
sets the offset in bytes from the binding location.
Parameters | |
---|---|
value in | the offset in bytes from the binding location. |
template<typename S>
void core:: meta:: shader:: vertex:: attribute:: 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. |