![]() |
VPP
0.7
A high-level modern C++ API for Vulkan
|
VPP provides easy interoperability mechanism for third party mathematical libraries. You need one of these libraries (or your own one) to represent vectors and matrices.
One of the most popular 3D math libraries is GLM (https://glm.g-truc.net). VPP contains built-in support for GLM.
To use GLM with VPP, you need to do two things:
glm.hpp
and other GLM headers first.vppSupportGLM.hpp
header after GLM headers.The vppSupportGLM.hpp
header is not automatically included by vppAll.hpp
.
Including vppSupportGLM.hpp
enables usage of GLM vector and matrix types as template arguments of vpp::Attribute (with vpp::ext helper) and vpp::UniformFld declarations.