bgfx: has no member VertexDecl
by admin on May.01, 2024, under News
If you’re having code like this:
static bgfx::VertexDecl ms_decl;
You may encounter the following error message:
namespace “bgfx” has no member “VertexDecl”
The solution is to simply rewrite the code to:
static bgfx::VertexLayout ms_decl;
As it was renamed a while ago: https://github.com/bkaradzic/bgfx/commit/855623e1534e9114847d8df3c2be52cb348e6493