Allocates and initializes a new snippet with the given source strings.
hook |
The point in the pipeline that this snippet will wrap around or replace. |
declarations |
The source code for the declarations for this snippet or null. See set_declarations. |
post |
The source code to run after the hook point where this shader snippet is attached or null . See set_post. |
a pointer to a new Snippet |