mod shaders

Some helper functions for linking and compiling shaders using a Composer.

Functions

Helper to link a shader source using a Composer and then compile it on the Device. It will be given the passed path as a name / file-path. Allows passing defines to the shader (or just Default::default).

Creates a Composer.

Will be validating iff compiling with debug_assertions.

Loads the default shaders to the passed Composer.