class HPS::LegacyShader::File

The File class provides a function to import legacy shader files.

Public Static Functions

static LegacyShaderKit Import(char const *in_file_name, ImportOptionsKit const &in_options)

Performs a synchronous import of the specified legacy shader file. The function returns a LegacyShaderKit with the source code from the legacy shader file and with the specified options. May throw an IOException if a problem occurs during import.

  • in_file_name – Name of legacy shader file from which to get the source code.

  • in_options – Options to set on the LegacyShaderKit returned by this function.


A LegacyShaderKit containing the source from the specified file and with the specified options.