Luna::ShaderCompiler::ShaderCompileParameters
Describes one shader compile action.
struct Luna::ShaderCompiler::ShaderCompileParameters
Member objects
-
The shader source data in HLSL or GLSL(SPIR-V) format. This is required for one shader compile action.
-
The source shader name. This will be used by the compiler and the debug tools to identify the shader if not empty.
-
The platform-native shader source file path. This will be used by the compiler or debugger to resolve local include file and PDB file if not empty.
-
The entry point function name of the shader. This must not be empty.
-
The shader compile target format. If the target is TargetFormat::none, no shader compilation is performed.
-
The type of the shader to compile.
-
The shader model used for compiling shaders.
-
OptimizationLevel optimization_level
The optimization level used for compiling shaders.
-
Whether to add debug informations to the shader binary.
-
Whether to skip shader validation.
-
MatrixPackMode matrix_pack_mode
The matrix pack mode when interpreting matrix data.
-
One array of paths that the compiler will use to find include files.
-
One set of definitions the compiler will use when preprocessing shader files.
-
The target platform for one metal shader. This is used only if
target_format
is TargetFormat::msl.