HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
materialBindingsSchema.h
Go to the documentation of this file.
1 //
2 // Copyright 2023 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 ////////////////////////////////////////////////////////////////////////
8 
9 /* ************************************************************************** */
10 /* ** ** */
11 /* ** This file is generated by a script. ** */
12 /* ** ** */
13 /* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14 /* ** Edit hdSchemaDefs.py instead to make changes. ** */
15 /* ** ** */
16 /* ************************************************************************** */
17 
18 #ifndef PXR_IMAGING_HD_MATERIAL_BINDINGS_SCHEMA_H
19 #define PXR_IMAGING_HD_MATERIAL_BINDINGS_SCHEMA_H
20 
21 /// \file
22 
23 #include "pxr/imaging/hd/api.h"
25 
26 #include "pxr/imaging/hd/schema.h"
27 
28 // --(BEGIN CUSTOM CODE: Includes)--
29 // --(END CUSTOM CODE: Includes)--
30 
32 
33 // --(BEGIN CUSTOM CODE: Declares)--
34 // --(END CUSTOM CODE: Declares)--
35 
36 #define HD_MATERIAL_BINDINGS_SCHEMA_TOKENS \
37  (materialBindings) \
38  ((allPurpose, "")) \
39  ((_allPurposeToken, "allPurpose")) \
40 
41 TF_DECLARE_PUBLIC_TOKENS(HdMaterialBindingsSchemaTokens, HD_API,
43 
44 //-----------------------------------------------------------------------------
45 
46 
47 /// \class HdMaterialBindingsSchema
48 ///
50 {
51 public:
52  /// \name Schema retrieval
53  /// @{
54 
55  HdMaterialBindingsSchema(HdContainerDataSourceHandle container)
56  : HdSchema(container) {}
57 
58  /// Retrieves a container data source with the schema's default name token
59  /// "materialBindings" from the parent container and constructs a
60  /// HdMaterialBindingsSchema instance.
61  /// Because the requested container data source may not exist, the result
62  /// should be checked with IsDefined() or a bool comparison before use.
63  HD_API
65  const HdContainerDataSourceHandle &fromParentContainer);
66 
67  /// @}
68 
69 // --(BEGIN CUSTOM CODE: Schema Methods)--
70 
71  HD_API
73 
74  HD_API
76 
77 // --(END CUSTOM CODE: Schema Methods)--
78 
79  /// \name Member accessor
80  /// @{
81 
82  /// @}
83 
84  /// \name Schema location
85  /// @{
86 
87  /// Returns a token where the container representing this schema is found in
88  /// a container by default.
89  HD_API
90  static const TfToken &GetSchemaToken();
91 
92  /// Returns an HdDataSourceLocator (relative to the prim-level data source)
93  /// where the container representing this schema is found by default.
94  HD_API
95  static const HdDataSourceLocator &GetDefaultLocator();
96 
97  /// @}
98 
99  /// \name Schema construction
100  /// @{
101  HD_API
102  static HdContainerDataSourceHandle
104  size_t count,
105  const TfToken *names,
106  const HdDataSourceBaseHandle *values);
107 
108  /// @}
109 };
110 
112 
113 #endif
static HD_API const TfToken & GetSchemaToken()
HD_API HdMaterialBindingSchema GetMaterialBinding() const
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
#define HD_API
Definition: api.h:23
static HD_API HdMaterialBindingsSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
#define HD_MATERIAL_BINDINGS_SCHEMA_TOKENS
TF_DECLARE_PUBLIC_TOKENS(HdMaterialBindingsSchemaTokens, HD_API, HD_MATERIAL_BINDINGS_SCHEMA_TOKENS)
Definition: token.h:70
HdMaterialBindingsSchema(HdContainerDataSourceHandle container)
static HD_API HdContainerDataSourceHandle BuildRetained(size_t count, const TfToken *names, const HdDataSourceBaseHandle *values)
GLenum GLsizei GLsizei GLint * values
Definition: glcorearb.h:1602
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
GLint GLsizei count
Definition: glcorearb.h:405
static HD_API const HdDataSourceLocator & GetDefaultLocator()