![]() |
VPP
0.7
A high-level modern C++ API for Vulkan
|
Binding point class for tessellation evaluation shaders. Place in your pipeline configuration class to declare a tessellation evaluation shader. More...
#include <vppShader.hpp>
Public Member Functions | |
template<class ClassT , typename... Args> | |
tessEvalShader (const tessControlShader &tcs, ClassT *pParentClass, void(ClassT::*fMethodDef)(TessEvalShader *, Args...), Args... args) | |
Constructor. More... | |
void | setPointMode (bool v) |
Enables or disables the point mode of the tessellator. More... | |
bool | isPointMode () const |
Retrieves the status of the point mode of the tessellator. | |
void | setVertexOrderCW (bool v) |
Sets the orientation of triangles generated by the tessellator. | |
bool | isVertexOrderCW () const |
Retrieves the orientation of triangles generated by the tessellator. | |
Binding point class for tessellation evaluation shaders. Place in your pipeline configuration class to declare a tessellation evaluation shader.
This class also contains several methods allowing to configure operation of the tessellator. Call them from your pipeline configuration class constructor.
Tessellation shaders are optional. If the tessellation evaluation shader is present, the tessellation control shader must also be present.
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 passed to the shader method unchanged.
void vpp::tessEvalShader::setPointMode | ( | bool | v | ) |
Enables or disables the point mode of the tessellator.
The point mode requests the tessellation primitive generator to generate a point for each distinct vertex in the subdivided primitive, rather than to generate lines or triangles.