[][src]Function slang_sys::spAddTranslationUnitSourceFile

pub unsafe extern "C" fn spAddTranslationUnitSourceFile(
    request: *mut SlangCompileRequest,
    translationUnitIndex: c_int,
    path: *const c_char
)

Add a source file to the given translation unit.

If a user-defined file system has been specified via spSetFileSystem, then it will be used to load the file at path. Otherwise, Slang will use the OS file system.

This function does not search for a file using the registered search paths (spAddSearchPath), and instead using the given path as-is.