MDL SDK API
Up
Index of Topics Explained in the Example Programs
The
Tutorial and Example Programs
explain many topics listed here as an index.
General
Automatic derivatives
AxF to MDL material format conversion
Baking material sub-expressions
Baking material to Unity texture channel layout
Caching of information on packages, modules, and materials
Changing arguments
Changing compiled material arguments at runtime (CPU)
Changing compiled material arguments at runtime (PTX)
Compiled materials
Compiling into one link unit
Configuration of the MDL SDK
Configuration of the GLSL backend for Vulkan
Constant data (GLSL)
Creation and usage of user-defined enum and struct types
Creation of a material variant
Creation of a simple diffuse material
Creating a textured material
Creating material and function variants
Custom Distiller plugin implementation
Custom Distiller target loading
Different compilation modes
Different compilation modes and options between
Discovery of MDL archives, packages and modules
Enumerating the contents of MDL modules
Example for a Microsoft DXR-based MDL-enabled path tracer
Example for Integrating the MDL encapsulated format
Execution of generated code (CPU)
Execution of generated code (GLSL)
Execution of generated code (OptiX 7)
Execution of generated code (PTX)
Export and load materials or functions using the MDL encapsulated format
Generated BSDF functions (CPU)
Generated BSDF functions (GLSL)
Generated BSDF functions (PTX)
Generating MDL code
Illustration of how we believe MDL materials should be presented to the user
Inspecting the parameters of material and function definitions
Instantiating material and function definitions
Interfaces and handles
Limiting the number of exported PTX functions
Linking and optimizing generated MDL code with renderer code
Loading of MDL modules
Loading textures (GLSL)
Loading textures (PTX)
Mapping distilled materials to a GLSL shader
Material distilling
MDL material state (CPU)
MDL material state (GLSL)
MDL material state (PTX)
Naming conventions
Main API access point
Main include files
Rationale for expressions vs values
Rendering glTF scenes using MDL materials
Starting and shutting down
Target code generation
Target code generation for a material with multiple functions
Target code serialization
Texture access functions (GLSL)
Texture access functions (PTX)
Traversal of a compiled material
Using the uniform analysis
14 January 2025, 19:54, rev381500.2959
© 2025 NVIDIA Corporation.
All rights reserved.