[][src]Module nobs_vkpipes::build

For usage in build.rs to automatically detect changes in glsl/spv files and force the recompilation of the rust source that references the shader.

Expample

An example build.rs. Every time src/my_shader.comp changes src/main.rs is flagged to recompile as well.

extern crate nobs_vkpipes as vkpipes;
use vkpipes::build::ShaderUsage;
fn main() {
  ShaderUsage::new().uses("src/my_shader.comp").depends("src/main.rs");
}

Structs

ShaderUsage

Creates a dependency between a shader source and rust source