VPP  0.8
A high-level modern C++ API for Vulkan
How to use VPP with GLM

How to use VPP with GLM

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:

  • Include glm.hpp and other GLM headers first.
  • Include 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.