Repository navigation
MDL SDK 2022 (359000.2512): 06 Aug 2022
ABI compatible with the MDL SDK 2022.0 (359000.2512) binary release
(see https://developer.nvidia.com/mdl-sdk)
Added and Changed Features
-
General
- Added contribution instructions and a Contributor License Agreement (CLA)
form to the open source release. - Increased the required Python version to 3.8 as this is required by LLVM.
- Added support for building the MDL SDK and the Examples on MacOS on ARM.
- Added methods on
IImage_apito clone canvases and tiles,
to convert the pixel type and for gamma correction on tiles. - Disabling the "materials are functions" feature is now deprecated. To that end,
the interfaceIMaterial_definitionhas been deprecated and most of the
interfaceIMaterial_instancehas been deprecated. Similarly, for the
corresponding enumerators of Element_type and
IMdl_evaluator_api::is_material_parameter_enabled(). See the documentation
linked fromIMaterial_instancefor details. The interfaces with the full set of
methods and the enumerators are still available ifMI_NEURAYLIB_DEPRECATED_13_0
is defined. - Added
IMdl_factory::is_valid_mdl_identifier(). Using this method avoids the
need to hardcode the list of MDL keywords yourself. The example "Generate MDL
identifier" makes now use of this method. - Both overloads of
IModule::get_function_overloads()now also accept the simple
name to identify the material or function definition. - Disabling encoded names is now deprecated. (There are no related API changes,
disabling just emits a corresponding warning.) - Added Python bindings wrapper for
IMdl_evaluator_apito support additional
MDL annotations.
- Added contribution instructions and a Contributor License Agreement (CLA)
-
MDL Compiler and Backends
- In this version, all backends depend on LLVM now. The LLVM version was lifted from 8.0 to
12.0.1.
This change is only visible, if LLVM-IR is chosen as the output format. - This version uses GLSL as a new target language. This new backend supports all capabilities
of the already
existing native, PTX, and HLSL backends, especially:- It can compile functions.
- It can compile materials (by using the libbsdf).
- The native runtime now blends between frames for animated textures.
- In this version, all backends depend on LLVM now. The LLVM version was lifted from 8.0 to
-
MDL SDK examples
- AxF to MDL
- New example that demonstrates how to convert X-Rite AxF file format to MDL.
- Example DXR
- Added support for the NV_materials_mdl glTF vendor extension.
- Added error logging for DRED page fault data.
- Example Execution GLSL VK
- New example that demonstrates how to execute material subexpressions generated
with the GLSL backend in Vulkan.
- New example that demonstrates how to execute material subexpressions generated
- Example DF Vulkan
- New example that demonstrates how to integrate MDL into a Vulkan based renderer
with the GLSL backend.
- New example that demonstrates how to integrate MDL into a Vulkan based renderer
- Added a Python example that shows how to create an MDL expression graph and
how to write the created material to disk. - Update MaterialX dependency to version 1.38.4.
- AxF to MDL
Fixed Bugs
-
General
- Fixed handling of MDL cast operators in the SDK.
- Fixed typos and descriptions in support_definitions.mdl.
- Fixed issue with Python bindings and deprecated
IMaterial_definitioninterface. - Fixed handling of the uniform modifier in the MDL module builder that caused correct
graph constructions to fail.
-
MDL Compiler and Backends
- Fixed missing struct constructors of re-exported structure types.
- Fixed bug in material hash calculation.
-
MDL SDK examples
- Example DXR
- Fixed crash when loading a new scene caused by fences being signaled too early
due to a race condition.
- Fixed crash when loading a new scene caused by fences being signaled too early
- Example DXR