Shader Compiler
The ShaderCompiler module provides API to compile shaders. ShaderCompiler is designed to work with RHI, but it can also be used independently to implement shader compile command-line tools without importing RHI module.
Types
-
Luna::ShaderCompiler::ShaderModel
Specifies the HLSL shader model version used when compiling HLSL source code.
-
Luna::ShaderCompiler::ShaderCompileParameters
Describes one shader compile action.
-
Luna::ShaderCompiler::ShaderCompileResult
Describes shader compile result.
-
Luna::ShaderCompiler::ICompiler
The compiler that compiles one shader source code into one target form.
Enumerations
-
Luna::ShaderCompiler::TargetFormat
The compile target to output.
-
Luna::ShaderCompiler::MatrixPackMode
The matrix pack mode.
-
Luna::ShaderCompiler::ShaderType
Specifies the shader compile type.
-
Luna::ShaderCompiler::OptimizationLevel
Specifies the shader optimization level.
-
Luna::ShaderCompiler::MetalPlatform
Specifies the intended running platform for one metal shader.
Functions
-
Ref< ICompiler > new_compiler()
Creates one new compiler.