HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
materialParamUtils.h
Go to the documentation of this file.
1 //
2 // Copyright 2020 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_USD_IMAGING_MATERIAL_PARAM_UTILS_H
8 #define PXR_USD_IMAGING_MATERIAL_PARAM_UTILS_H
9 
10 #include "pxr/pxr.h"
12 #include "pxr/base/tf/token.h"
13 
15 
17 class UsdAttribute;
18 class UsdPrim;
19 class UsdTimeCode;
20 class VtValue;
21 
22 /// Builds an HdMaterialNetwork for the usdTerminal prim and
23 /// populates it in the materialNetworkMap under the terminalIdentifier.
24 /// This shared implementation is usable for populating material networks for
25 /// any connectable source including lights and light filters in addition to
26 /// materials.
28 void
30  UsdPrim const& usdTerminal,
31  TfToken const& terminalIdentifier,
32  TfTokenVector const& shaderSourceTypes,
33  TfTokenVector const& renderContexts,
34  HdMaterialNetworkMap *materialNetworkMap,
36 
37 /// Returns whether the material network built by
38 /// UsdImagingBuildHdMaterialNetworkFromTerminal for the given usdTerminal
39 /// prim is time varying.
41 bool
43  UsdPrim const& usdTerminal);
44 
46 
47 #endif // PXR_USD_IMAGING_MATERIAL_PARAM_UTILS_H
#define USDIMAGING_API
Definition: api.h:23
GT_API const UT_StringHolder time
USDIMAGING_API void UsdImagingBuildHdMaterialNetworkFromTerminal(UsdPrim const &usdTerminal, TfToken const &terminalIdentifier, TfTokenVector const &shaderSourceTypes, TfTokenVector const &renderContexts, HdMaterialNetworkMap *materialNetworkMap, UsdTimeCode time)
USDIMAGING_API bool UsdImagingIsHdMaterialNetworkTimeVarying(UsdPrim const &usdTerminal)
Definition: token.h:70
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
Definition: value.h:146