MaterialX 1.39.1
Loading...
Searching...
No Matches
GenMdlOptions Class Reference

Generator context data class to pass strings. More...

#include <MdlShaderGenerator.h>

Inheritance diagram for GenMdlOptions:
GenUserData

Public Types

enum class  MdlVersion { MDL_1_6 , MDL_1_7 , MDL_1_8 , MDL_LATEST = MDL_1_8 }
 MDL Versions supported by the Code Generator.
 

Public Member Functions

 GenMdlOptions ()
 Create MDL code generator options with default values.
 
- Public Member Functions inherited from GenUserData
GenUserDataPtr getSelf ()
 Return a shared pointer for this object.
 
ConstGenUserDataPtr getSelf () const
 Return a shared pointer for this object.
 
template<class T >
shared_ptr< T > asA ()
 Return this object cast to a templated type.
 
template<class T >
shared_ptr< const T > asA () const
 Return this object cast to a templated type.
 

Public Attributes

MdlVersion targetVersion
 The MDL version number the generated module will have. More...
 

Static Public Attributes

static const string GEN_CONTEXT_USER_DATA_KEY
 Unique identifier for the MDL options on the GenContext object.
 

Detailed Description

Generator context data class to pass strings.

Member Data Documentation

◆ targetVersion

MdlVersion targetVersion

The MDL version number the generated module will have.

Allows to generate MDL for older applications by limiting support according to the corresponding specification. By default this option is MDL_LATEST.


The documentation for this class was generated from the following file: