FastUIDraw
|
A PainterItemShader represents a shader to draw an item (typically a vertex and fragment shader pair). More...
#include <painter_item_shader.hpp>
Additional Inherited Members | |
Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter > | |
static void | add_reference (const reference_counted_base< T, Counter > *p) |
static void | remove_reference (const reference_counted_base< T, Counter > *p) |
A PainterItemShader represents a shader to draw an item (typically a vertex and fragment shader pair).
Definition at line 38 of file painter_item_shader.hpp.
|
inlineexplicit |
Ctor for a PainterItemShader with no sub-shaders.
cvg | coverage shader for the PainterItemShader; the coverage shader, if present is to use the exact same PainterItemShaderData value but render to the coverage buffer. The PainterItemShader can then use those coverage values in its shader code. |
Definition at line 51 of file painter_item_shader.hpp.
|
inlineexplicit |
Ctor for creating a PainterItemShader which has multiple sub-shaders. The purpose of sub-shaders is for the case where multiple shaders almost same code and those code differences can be realized by examining a sub-shader ID.
num_sub_shaders | number of sub-shaders |
cvg | coverage shader for the PainterItemShader; the coverage shader, if present is to use the exact same PainterItemShaderData value but render to the coverage buffer. The PainterItemShader can then use those coverage values in its shader code. |
Definition at line 72 of file painter_item_shader.hpp.
|
inline |
Ctor to create a PainterItemShader realized as a sub-shader of an existing PainterItemShader
parent | parent PainterItemShader that has sub-shaders |
sub_shader | which sub-shader of the parent PainterItemShader |
cvg | coverage shader for the PainterItemShader; the coverage shader, if present is to use the exact same PainterItemShaderData value but render to the coverage buffer. The PainterItemShader can then use those coverage values in its shader code. |
Definition at line 91 of file painter_item_shader.hpp.
|
inline |
The coverage shader used by this PainterItemShader; the coverage shader, if present is to use the exact same PainterItemShaderData value but renders to the coverage buffer. The PainterItemShader can then use those coverage values in its shader code.
Definition at line 107 of file painter_item_shader.hpp.