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

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...
 

Detailed Description

Binding point class for vertex shaders. Place in your pipeline configuration class to declare a vertex shader.

Example:

class MyPipelineConfig : public vpp::PipelineConfig
{
public:
MyPipelineConfig ( const vpp::Process& pr, const vpp::Device& dev );
void fVertexShader ( vpp::VertexShader* pShader );
vpp::vertexShader m_vertexShader;
};
MyPipelineConfig :: MyPipelineConfig ( const vpp::Process& pr, const vpp::Device& dev )
m_vertexShader ( this, & MyPipelineConfig::fVertexShader )
{
}

Constructor & Destructor Documentation

◆ vertexShader()

template<class ClassT , typename... Args>
vpp::vertexShader::vertexShader ( ClassT *  pParentClass,
void(ClassT::*)(VertexShader *, Args...)  fMethodDef,
Args...  args 
)
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.


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