Shader Library

Pixie comes with a library that allows you to query a compiled shader for its parameter. SDR lib exports the following two functions:

TSdrShader *sdrGet(const char *);

void sdrDelete(TSdrShader *);

The first function is used to get the shader info i.e.: sdrGet("matte.sdr"). The second function can be used to free the structure returned be sdrGet. The structure TSdrShader contains the shader and parameter information. See the source code for "sdrinfo" for example usage.