Crate include_shader

Source
Expand description

A library to help working with shaders.

Although this library works on stable, detection of shader file changes is not guaranteed due to caching. Therefore, it is recommended to use nightly along with the track-path feature enabled until the track_path API stabilizes.

§Optional features

relative-path - Resolves path relative to the current file instead of relative to the workspace root directory.

track-path - Enables file tracking to ensure detection of shader file changes.

Macros§

include_shader
Includes a shader file as a string with dependencies support.