libdonut 2.3.6
Application framework for cross-platform game development in C++20
Loading...
Searching...
No Matches
donut::graphics::vertex_attribute Concept Reference

Concept that checks if a type is a valid vertex attribute. More...

#include <donut/graphics/Mesh.hpp>

Concept definition

template<typename T>
std::is_same_v<T, u32> ||
std::is_same_v<T, float> ||
std::is_same_v<T, vec2> ||
std::is_same_v<T, vec3> ||
std::is_same_v<T, vec4> ||
std::is_same_v<T, mat2> ||
std::is_same_v<T, mat3> ||
std::is_same_v<T, mat4>
Concept that checks if a type is a valid vertex attribute.
Definition Mesh.hpp:26

Detailed Description

Concept that checks if a type is a valid vertex attribute.

Template Parameters
Tthe type to check.