Function shader_prepper::process_file
source · pub fn process_file<IncludeContext>(
file_path: &str,
include_provider: &mut dyn IncludeProvider<IncludeContext = IncludeContext>,
include_context: IncludeContext
) -> Result<Vec<SourceChunk>, Error>
Expand description
Process a single file, and then any code recursively referenced.
include_provider
is used to read all of the files, including the one at file_path
.