MDL SDK API nvidia_logo_transpbg.gif Up
Tutorial and Example Programs

To help you get up to speed quickly, the the MDL SDK provides many example programs that you can use as a starting point for the integration of MDL into your application.

The example programs presented in The Basics cover concepts and implementation details that all software developers need to understand. The example programs presented in Integrating MDL into a Renderer cover important concepts and implementation details to consider for this task.

Note: For a description of how the example programs can be compiled, see Getting Started.

The Basics

The programs listed in this section illustrate standard workflow tasks: loading, instantiating, and compiling materials, and generating target code for a compiled material.

Integrating MDL into a Renderer

The example programs listed in the following sections take you through the following steps:

  1. Compiling and executing functions and materials
  2. Distilling and baking, which is intended for game engines and renderers with limited capabilities

Compiling and Executing Functions

The example programs listed in this section describe the execution of code generated for various backends and execution of material expressions:

Compiling and Executing Materials

The example programs listed in this section take you through the following steps:

  1. Compiling and executing code for various backends
  2. Compiling and executing distribution functions
  3. Rendering with simple path tracers

Distilling and Baking

Distilling and baking enable you to optimize MDL materials for game engines and renderers with limited capabilities. The following examples provide an introduction to the MDL distilling mechanism and how to use it.

Other Topics

The following examples cover topics and use cases that may be important to your particular MDL integration.

Index of Topics Explained in the Example Programs