ngfx::ShaderTools
Public Classes
Name | |
---|---|
struct | MacroDefinition |
Public Types
Name | |
---|---|
enum | @1 { PATCH_SHADER_LAYOUTS_GLSL = 1, REMOVE_UNUSED_VARIABLES = 2} |
enum | Format { FORMAT_GLSL, FORMAT_HLSL, FORMAT_MSL} |
typedef std::vector< MacroDefinition > | MacroDefinitions |
Public Functions
Name | |
---|---|
ShaderTools(bool verbose =false) | |
std::vector< std::string > | compileShaders(const std::vector< std::string > & files, std::string outDir, Format fmt =FORMAT_GLSL, const MacroDefinitions & defines ={}, int flags =0) |
std::vector< std::string > | convertShaders(const std::vector< std::string > & files, std::string outDir, Format fmt) |
std::vector< std::string > | generateShaderMaps(const std::vector< std::string > & files, std::string outDir, Format fmt) |
Public Types Documentation
enum @1
Enumerator | Value | Description |
---|---|---|
PATCH_SHADER_LAYOUTS_GLSL | 1 | |
REMOVE_UNUSED_VARIABLES | 2 |
enum Format
Enumerator | Value | Description |
---|---|---|
FORMAT_GLSL | ||
FORMAT_HLSL | ||
FORMAT_MSL |
typedef MacroDefinitions
typedef std::vector<MacroDefinition> ngfx::ShaderTools::MacroDefinitions;
Public Functions Documentation
function ShaderTools
ShaderTools(
bool verbose =false
)
function compileShaders
std::vector< std::string > compileShaders(
const std::vector< std::string > & files,
std::string outDir,
Format fmt =FORMAT_GLSL,
const MacroDefinitions & defines ={},
int flags =0
)
function convertShaders
std::vector< std::string > convertShaders(
const std::vector< std::string > & files,
std::string outDir,
Format fmt
)
function generateShaderMaps
std::vector< std::string > generateShaderMaps(
const std::vector< std::string > & files,
std::string outDir,
Format fmt
)
Updated on 3 April 2021 at 20:21:51 PDT