![]() |
VPP
0.8
A high-level modern C++ API for Vulkan
|
Binding point class for compute shaders. Place in your pipeline configuration class to declare a compute shader. More...
#include <vppShader.hpp>
Classes | |
struct | SLocalSize |
Public Member Functions | |
template<class ClassT , typename... Args> | |
computeShader (ClassT *pParentClass, const SLocalSize &localSize, void(ClassT::*fMethodDef)(ComputeShader *, Args...), Args... args) | |
Constructor. More... | |
Binding point class for compute shaders. Place in your pipeline configuration class to declare a compute shader.
|
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.