Snippet


Description:

public Snippet (SnippetHook hook, string declarations, string post)

Allocates and initializes a new snippet with the given source strings.

Parameters:

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.

Returns:

a pointer to a new Snippet