![]() |
VPP
0.7
A high-level modern C++ API for Vulkan
|
Binding point class for vertex shaders. Place in your pipeline configuration class to declare a vertex shader. More...
#include <vppShader.hpp>
Public Member Functions | |
template<class ClassT , typename... Args> | |
vertexShader (ClassT *pParentClass, void(ClassT::*fMethodDef)(VertexShader *, Args...), Args... args) | |
Constructor. More... | |
Binding point class for vertex shaders. Place in your pipeline configuration class to declare a vertex shader.
Example:
|
inline |
Constructor.
As the first parameter, put the pointer to parent PipelineConfig derived class. Usually it is the this
pointer, as the constructor is being called from the pipeline config class constructor.
The second argument is a pointer to member method implementing the shader.
Optionally there can be more user-defined arguments. They will be pased to the shader method unchanged.