VPP  0.7
A high-level modern C++ API for Vulkan
Public Member Functions | List of all members
vpp::VMat4 Class Reference

Shader (GPU-side) data type for mutable variables of 4x4 32-bit floating point matrix type. More...

#include <vppLangMatrixTypes.hpp>

Public Member Functions

 VMat4 ()
 Constructs uninitialized matrix variable.
 
 VMat4 (const Mat4 &rhs)
 Constructs matrix variable and initializes it with given value.
 
 VMat4 (const VMat4 &rhs)
 Constructs matrix variable and initializes it with given value.
 
const VMat4operator= (const Mat4 &rhs)
 Assigns new value to matrix variable.
 
 operator Mat4 () const
 Retrieves the r-value from matrix variable.
 
template<typename IndexT >
auto operator[] (IndexT index) const
 Retrieves a column vector from matrix variable.
 

Detailed Description

Shader (GPU-side) data type for mutable variables of 4x4 32-bit floating point matrix type.

This is a l-value type. It can be initialized and changed any time.

Beware that mutable variables can degrade performance on GPU, therefore Mat4 is preferable, unless you really want a mutable variable.


The documentation for this class was generated from the following file: