VPP  0.8
A high-level modern C++ API for Vulkan
vpp::VertexShader Class Reference

Vertex shader interface. More...

#include <vppLangIntInOut.hpp>

Inheritance diagram for vpp::VertexShader:
vpp::Shader

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

- Public Member Functions inherited from vpp::Shader
const Devicedevice () 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...
 

Detailed Description

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.


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