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

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

Detailed Description

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

Constructor & Destructor Documentation

◆ computeShader()

template<class ClassT , typename... Args>
vpp::computeShader::computeShader ( ClassT *  pParentClass,
const SLocalSize localSize,
void(ClassT::*)(ComputeShader *, 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: