106#include "vtkRenderingOpenGL2Module.h"
118VTK_ABI_NAMESPACE_BEGIN
224 void operator=(
const vtkShader&) =
delete;
a simple class to control print indentation
abstract base class for most VTK objects
bool operator>(const ReplacementSpec &v1) const
vtkShader::Type ShaderType
std::string OriginalValue
bool operator<(const ReplacementSpec &v1) const
Vertex or Fragment shader, combined into a ShaderProgram.
void Cleanup()
Delete the shader.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Type GetType() const
Get the shader type, typically Vertex or Fragment.
static bool IsComputeShaderSupported()
Check if compute shaders are supported.
std::string GetSource() const
Get the source for the shader.
std::string GetError() const
Get the error message (empty if none) for the shader.
bool Compile()
Compile the shader.
int GetHandle() const
Get the handle of the shader.
Type
Available shader types.
@ TessControl
Tessellation Control.
@ Geometry
Geometry shader.
@ Fragment
Fragment shader.
@ TessEvaluation
Tessellation Evaluation.
static bool IsTessellationShaderSupported()
Check if tessellation shaders are supported.
void SetSource(const std::string &source)
Set the shader source to the supplied string.
void SetType(Type type)
Set the shader type.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)