diff options
author | Neil Roberts <neil@linux.intel.com> | 2011-11-25 14:36:31 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-12-06 19:02:05 +0000 |
commit | 717e96b3045499e0c4903105f5fa659ebea3ba70 (patch) | |
tree | a3cf4fc9cc122be98f125b5f0d2546d146692eb1 /cogl/cogl-pipeline-state.h | |
parent | 0fdd5690c6b760334bf0307e5c1d3c82f3937239 (diff) | |
download | cogl-717e96b3045499e0c4903105f5fa659ebea3ba70.tar.gz |
snippet: Add a 'replace' string
If present, the 'replace' string will be used instead of whatever code
would normally be invoked for that hook point. It will also replace
any previous snippets.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-pipeline-state.h')
-rw-r--r-- | cogl/cogl-pipeline-state.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cogl/cogl-pipeline-state.h b/cogl/cogl-pipeline-state.h index d2c0ada8..02728762 100644 --- a/cogl/cogl-pipeline-state.h +++ b/cogl/cogl-pipeline-state.h @@ -954,6 +954,11 @@ cogl_pipeline_set_uniform_matrix (CoglPipeline *pipeline, * The ‘pre’ string in @snippet will be inserted at the top of the * main() function before any vertex processing is done. * + * The ‘replace’ string in @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. + * * The ‘post’ string in @snippet will be inserted after all of the * standard vertex processing is done. This can be used to modify the * outputs. @@ -982,6 +987,11 @@ cogl_pipeline_add_vertex_hook (CoglPipeline *pipeline, * The ‘pre’ string in @snippet will be inserted at the top of the * main() function before any fragment processing is done. * + * The ‘replace’ string in @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. + * * The ‘post’ string in @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 |