HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
layerHints.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_SDF_LAYER_HINTS_H
8 #define PXR_USD_SDF_LAYER_HINTS_H
9 
10 #include "pxr/pxr.h"
11 
13 
14 /// Contains hints about layer contents that may be used to accelerate certain
15 /// composition operations.
17 {
18 public:
19  /// Default constructed hints provide the most conservative set of values
20  /// such that consumers of the hints will act correctly if not optimally.
21  SdfLayerHints() = default;
22 
23  /// Construct hints with specific values. Using this constructor requires
24  /// that all hint fields be specified.
26  : mightHaveRelocates(mightHaveRelocates)
27  {}
28 
29  /// If this field is false, the layer does not contain relocates. If
30  /// true, relocates may be present but are not guaranteed to exist.
31  bool mightHaveRelocates = true;
32 };
33 
35 
36 #endif
SdfLayerHints(bool mightHaveRelocates)
Definition: layerHints.h:25
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
bool mightHaveRelocates
Definition: layerHints.h:31
SdfLayerHints()=default