Loading...
Searching...
No Matches
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//
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
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
31PXR_NAMESPACE_OPEN_SCOPE
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
41TF_DECLARE_PUBLIC_TOKENS(HdMaterialBindingsSchemaTokens, HD_API,
42 HD_MATERIAL_BINDINGS_SCHEMA_TOKENS);
43
44//-----------------------------------------------------------------------------
45
46
49class HdMaterialBindingsSchema : public HdSchema
50{
51public:
54
55 HdMaterialBindingsSchema(HdContainerDataSourceHandle container)
56 : HdSchema(container) {}
57
63 HD_API
64 static HdMaterialBindingsSchema GetFromParent(
65 const HdContainerDataSourceHandle &fromParentContainer);
66
68
69// --(BEGIN CUSTOM CODE: Schema Methods)--
70
71 HD_API
72 HdMaterialBindingSchema GetMaterialBinding() const;
73
74 HD_API
75 HdMaterialBindingSchema GetMaterialBinding(TfToken const &purpose) const;
76
77// --(END CUSTOM CODE: Schema Methods)--
78
81
83
86
89 HD_API
90 static const TfToken &GetSchemaToken();
91
94 HD_API
95 static const HdDataSourceLocator &GetDefaultLocator();
96
98
101 HD_API
102 static HdContainerDataSourceHandle
103 BuildRetained(
104 size_t count,
105 const TfToken *names,
106 const HdDataSourceBaseHandle *values);
107
109};
110
111PXR_NAMESPACE_CLOSE_SCOPE
112
113#endif
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92