Enumeration
CoglSnippetHook
since: 13
Description [src]
CoglSnippetHook is used to specify a location within a
CoglPipeline where the code of the snippet should be used when it
is attached to a pipeline.
COGL_SNIPPET_HOOK_VERTEX_GLOBALSCOGL_SNIPPET_HOOK_FRAGMENT_GLOBALSCOGL_SNIPPET_HOOK_VERTEXsnippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted at the top of the
main() function before any vertex processing is done.
snippet will be used instead of the
generated vertex processing if it is present. This can be used if
the application wants to provide a complete vertex shader and
doesn’t need the generated output from Cogl.
snippet will be inserted after all of the
standard vertex processing is done. This can be used to modify the
outputs.
COGL_SNIPPET_HOOK_VERTEX_TRANSFORMsnippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted at the top of the
main() function before the vertex transform is done.
snippet will be used instead of the
generated vertex transform if it is present.
snippet will be inserted after all of the
standard vertex transformation is done. This can be used to modify the
cogl_position_out in addition to the default processing.
COGL_SNIPPET_HOOK_POINT_SIZEcogl_pipeline_set_per_vertex_point_size() is enabled
on the pipeline.
snippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted just before
calculating the point size.
snippet will be used instead of the
generated point size calculation if it is present.
snippet will be inserted after the
standard point size calculation is done. This can be used to modify
cogl_point_size_out in addition to the default processing.
COGL_SNIPPET_HOOK_FRAGMENTsnippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted at the top of the
main() function before any fragment processing is done.
snippet will be used instead of the
generated fragment processing if it is present. This can be used if
the application wants to provide a complete fragment shader and
doesn’t need the generated output from Cogl.
snippet will be inserted after all of the
standard fragment processing is done. At this point the generated
value for the rest of the pipeline state will already be in
cogl_color_out so the application can modify the result by altering
this variable.
COGL_SNIPPET_HOOK_TEXTURE_COORD_TRANSFORMsnippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted just before the
fragment processing for this layer. At this point cogl_tex_coord
still contains the value of the texture coordinate attribute.
snippet will be inserted just after the
transformation. At this point cogl_tex_coord will contain the
results of the transformation but it can be further modified by the
snippet.
COGL_SNIPPET_HOOK_LAYER_FRAGMENTsnippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted just before the
fragment processing for this layer.
snippet will be inserted just after the
fragment processing for the layer. The results can be modified by changing
the value of the ‘cogl_layer’ variable.
COGL_SNIPPET_HOOK_TEXTURE_LOOKUPsnippet will be inserted in the
global scope of the shader. Use this to declare any uniforms,
attributes or functions that the snippet requires.
snippet will be inserted at the top of the
main() function before any fragment processing is done. This is a
good place to modify the cogl_tex_coord variable.
snippet will be inserted after texture lookup
has been performed. Here the snippet can modify the cogl_texel
variable to alter the returned texel.
Available since: 13
Members
COGL_SNIPPET_HOOK_VERTEX-
A hook for the entire vertex processing stage of the pipeline.
- Value:
0 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_VERTEX_TRANSFORM-
A hook for the vertex transformation.
- Value:
1 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_VERTEX_GLOBALS-
A hook for declaring global data that can be shared with all other snippets that are on a vertex hook.
- Value:
2 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_POINT_SIZE-
A hook for manipulating the point size of a vertex. This is only used if
cogl_pipeline_set_per_vertex_point_size()is enabled on the pipeline.- Value:
3 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_FRAGMENT-
A hook for the entire fragment processing stage of the pipeline.
- Value:
2048 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_FRAGMENT_GLOBALS-
A hook for declaring global data wthat can be shared with all other snippets that are on a fragment hook.
- Value:
2049 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_TEXTURE_COORD_TRANSFORM-
A hook for applying the layer matrix to a texture coordinate for a layer.
- Value:
4096 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_LAYER_FRAGMENT-
A hook for the fragment processing of a particular layer.
- Value:
6144 - Nickname:
None - Available since: 13
- Value:
COGL_SNIPPET_HOOK_TEXTURE_LOOKUP-
A hook for the texture lookup stage of a given layer in a pipeline.
- Value:
6145 - Nickname:
None - Available since: 13
- Value: