MDL SDK API nvidia_logo_transpbg.gif Up
imaterial_instance.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IMATERIAL_INSTANCE_H
8#define MI_NEURAYLIB_IMATERIAL_INSTANCE_H
9
14
15namespace mi {
16
17namespace neuraylib {
18
23class ICompiled_material;
24class IMdl_execution_context;
25
31class IMaterial_instance : public
32 mi::base::Interface_declare<0x037ec156,0x281d,0x466a,0xa1,0x56,0x3e,0xd6,0x83,0xe9,0x5a,0x00,
33 neuraylib::IScene_element>
34{
35public:
42 COMPILATION_OPTIONS_FORCE_32_BIT = 0xffffffffU // Undocumented, for alignment only
43 };
44
45 mi_static_assert( sizeof( Compilation_options) == sizeof( mi::Uint32));
46
101 Uint32 flags,
102 IMdl_execution_context* context = 0) const = 0;
103};
104 // end group mi_neuray_mdl_elements
106
107} // namespace neuraylib
108
109} // namespace mi
110
111#endif // MI_NEURAYLIB_IMATERIAL_INSTANCE_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
This interface represents a compiled material.
Definition: icompiled_material.h:94
This interface represents a material instance.
Definition: imaterial_instance.h:34
virtual ICompiled_material * create_compiled_material(Uint32 flags, IMdl_execution_context *context=0) const =0
Creates a compiled material.
Compilation_options
Various options for the creation of compiled materials.
Definition: imaterial_instance.h:39
@ CLASS_COMPILATION
Selects class compilation instead of instance compilation.
Definition: imaterial_instance.h:41
@ DEFAULT_OPTIONS
Default compilation options (e.g., instance compilation).
Definition: imaterial_instance.h:40
The execution context can be used to query status information like error and warning messages concern...
Definition: imdl_execution_context.h:131
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
Expressions of the MDL type system.
Scene element Function_call.
API component that gives access to some MDL functionality.
Base class for all scene elements.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: example_derivatives.dox:5