![]() |
VPP
0.8
A high-level modern C++ API for Vulkan
|
Vertex shader interface. More...
#include <vppLangIntInOut.hpp>
Public Attributes | |
Int | inVertexIndex |
In: index of current vertex. | |
Int | inInstanceIndex |
In: index of current instance. | |
gl_perVertex | outVertex |
Out: computed basic vertex attributes. | |
Additional Inherited Members | |
![]() | |
const Device & | device () const |
Retrieves the device the shader is currently compiled for. | |
void | DebugCodeDump () |
Enables diagnostic dump of intermediate SPIR-V code for this shader. More... | |
template<class ValueT > | |
void | DebugProbe (const ValueT &value, const IVec2 &coords, const VkExtent3D &extent) |
Adds a debug probe to dump an expression value during shader execution. More... | |
Vertex shader interface.
An object of this class is provided to user-defined vertex shader. It is usable only in GPU-side vertex shader code. Its main purpose is to give access to built-in shader variables.
By convention, member names starting with in
denote read-only variables, while the out
prefix mean that the variable may be only written to.