Loading...
Searching...
No Matches
materialBindingSchema.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_BINDING_SCHEMA_H
19#define PXR_IMAGING_HD_MATERIAL_BINDING_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// --(END CUSTOM CODE: Includes)--
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32// --(BEGIN CUSTOM CODE: Declares)--
33// --(END CUSTOM CODE: Declares)--
34
35#define HD_MATERIAL_BINDING_SCHEMA_TOKENS \
36 (path) \
37
38TF_DECLARE_PUBLIC_TOKENS(HdMaterialBindingSchemaTokens, HD_API,
39 HD_MATERIAL_BINDING_SCHEMA_TOKENS);
40
41//-----------------------------------------------------------------------------
42
43
44class HdMaterialBindingSchema : public HdSchema
45{
46public:
49
50 HdMaterialBindingSchema(HdContainerDataSourceHandle container)
51 : HdSchema(container) {}
52
54
55// --(BEGIN CUSTOM CODE: Schema Methods)--
56// --(END CUSTOM CODE: Schema Methods)--
57
60
61 HD_API
62 HdPathDataSourceHandle GetPath() const;
63
65
68
76 HD_API
77 static HdContainerDataSourceHandle
78 BuildRetained(
79 const HdPathDataSourceHandle &path
80 );
81
88 class Builder
89 {
90 public:
91 HD_API
92 Builder &SetPath(
93 const HdPathDataSourceHandle &path);
94
96 HD_API
97 HdContainerDataSourceHandle Build();
98
99 private:
100 HdPathDataSourceHandle _path;
101
102 };
103
105};
106
107PXR_NAMESPACE_CLOSE_SCOPE
108
109#endif
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81