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 
40 TF_DECLARE_PUBLIC_TOKENS(HdMaterialBindingsSchemaTokens, HD_API,
42 
43 //-----------------------------------------------------------------------------
44 
45 
47 {
48 public:
49  /// \name Schema retrieval
50  /// @{
51 
52  HdMaterialBindingsSchema(HdContainerDataSourceHandle container)
53  : HdSchema(container) {}
54 
55  /// Retrieves a container data source with the schema's default name token
56  /// "materialBindings" from the parent container and constructs a
57  /// HdMaterialBindingsSchema instance.
58  /// Because the requested container data source may not exist, the result
59  /// should be checked with IsDefined() or a bool comparison before use.
60  HD_API
62  const HdContainerDataSourceHandle &fromParentContainer);
63 
64  /// @}
65 
66 // --(BEGIN CUSTOM CODE: Schema Methods)--
67 
68  HD_API
70 
71  HD_API
73 
74 // --(END CUSTOM CODE: Schema Methods)--
75 
76  /// \name Member accessor
77  /// @{
78 
79  /// @}
80 
81  /// \name Schema location
82  /// @{
83 
84  /// Returns a token where the container representing this schema is found in
85  /// a container by default.
86  HD_API
87  static const TfToken &GetSchemaToken();
88 
89  /// Returns an HdDataSourceLocator (relative to the prim-level data source)
90  /// where the container representing this schema is found by default.
91  HD_API
92  static const HdDataSourceLocator &GetDefaultLocator();
93 
94  /// @}
95 
96  /// \name Schema construction
97  /// @{
98  HD_API
99  static HdContainerDataSourceHandle
101  size_t count,
102  const TfToken *names,
103  const HdDataSourceBaseHandle *values);
104 
105  /// @}
106 };
107 
109 
110 #endif
static HD_API const TfToken & GetSchemaToken()
HD_API HdMaterialBindingSchema GetMaterialBinding() const
#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)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
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()