core::meta::shader::vertex::attribute class

vertex attribute description.

static variables

char
serialization_name
the serialization name for the psl::format::node
constconstconstexprconstexprprivateprivatestaticstatic

member-functions

location
returns the binding location of the attribute.
const public noexcept
location
sets the binding location of the attribute.
public
format
returns the format that this binding location should be using.
const public noexcept
format
sets the format of this attribute.
public
offset
returns the offset in bytes starting from the binding location.
const public noexcept
offset
sets the offset in bytes from the binding location.
public
serialize<…>
method that will be invoked by the serialization system.
private

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
in instance of a serializer that you can read from, or write to.