HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
textureUtils.h
Go to the documentation of this file.
1 //
2 // Copyright 2018 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_USD_IMAGING_TEXTURE_UTILS_H
8 #define PXR_USD_IMAGING_USD_IMAGING_TEXTURE_UTILS_H
9 
10 #include "pxr/pxr.h"
11 
12 #include "pxr/base/tf/token.h"
13 
14 #include "pxr/usd/sdf/layer.h"
15 
17 
18 #include <tuple>
19 #include <vector>
20 
22 
23 /// \deprecated HdSceneDelegate no longer implements GetTextureResource.
24 ///
25 /// The functions below are used by the old texture system where the
26 /// scene delegates creates the texture resource in
27 /// GetTextureResource.
28 ///
29 /// Note: these functions are also not binding the Usd stage's
30 /// resolver context and thus don't handle some cases (e.g., model
31 /// search paths) correctly.
32 ///
33 /// The corresponding functions for the new texture system are in
34 /// usdImaging/materialParamUtils.cpp and HdStUdimTextureObject.
35 ///
37 std::vector<std::tuple<int, TfToken>>
39  std::string const& basePath,
40  int tileLimit,
41  SdfLayerHandle const& layerHandle = SdfLayerHandle());
42 
44 
45 #endif // PXR_USD_IMAGING_USD_IMAGING_TEXTURE_UTILS_H
#define USDIMAGING_API
Definition: api.h:23
PXR_NAMESPACE_OPEN_SCOPE USDIMAGING_API std::vector< std::tuple< int, TfToken > > UsdImaging_GetUdimTiles(std::string const &basePath, int tileLimit, SdfLayerHandle const &layerHandle=SdfLayerHandle())
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74