Updated documentation to clarify dx12compiler usage. (#3957)

This commit is contained in:
Small White 2023-07-22 01:50:25 +08:00 committed by GitHub
parent 21098cdace
commit ac9ac8bcae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6309,9 +6309,9 @@ pub enum Dx12Compiler {
/// However, it requires both `dxcompiler.dll` and `dxil.dll` to be shipped with the application.
/// These files can be downloaded from <https://github.com/microsoft/DirectXShaderCompiler/releases>.
Dxc {
/// Path to the `dxcompiler.dll` file. Passing `None` will use standard platform specific dll loading rules.
/// Path to the `dxil.dll` file, or path to the directory containing `dxil.dll` file. Passing `None` will use standard platform specific dll loading rules.
dxil_path: Option<PathBuf>,
/// Path to the `dxil.dll` file. Passing `None` will use standard platform specific dll loading rules.
/// Path to the `dxcompiler.dll` file, or path to the directory containing `dxil.dll` file. Passing `None` will use standard platform specific dll loading rules.
dxc_path: Option<PathBuf>,
},
}