VPP  0.7
A high-level modern C++ API for Vulkan
vpp::VIVec4 Class Reference

Shader (GPU-side) data type for mutable variables of 4-element 32-bit integer vector type. More...

#include <vppLangVectorTypes.hpp>

Detailed Description

Shader (GPU-side) data type for mutable variables of 4-element 32-bit integer vector type.

Use this type inside shader code as a counterpart of CPU-side integer[4] type, when it is required to change value of the vector.

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

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

This class is very similar (except the data type) to floating-point counterpart, VVec4. For details, see VVec4 description.


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