Loading...
Searching...
No Matches
renderPassSchema.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_RENDER_PASS_SCHEMA_H
19#define PXR_IMAGING_HD_RENDER_PASS_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
24#include "pxr/imaging/hd/schemaTypeDefs.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_RENDER_PASS_SCHEMA_TOKENS \
37 (renderPass) \
38 (passType) \
39 (renderSource) \
40
41TF_DECLARE_PUBLIC_TOKENS(HdRenderPassSchemaTokens, HD_API,
42 HD_RENDER_PASS_SCHEMA_TOKENS);
43
44//-----------------------------------------------------------------------------
45
46
49class HdRenderPassSchema : public HdSchema
50{
51public:
54
55 HdRenderPassSchema(HdContainerDataSourceHandle container)
56 : HdSchema(container) {}
57
63 HD_API
64 static HdRenderPassSchema GetFromParent(
65 const HdContainerDataSourceHandle &fromParentContainer);
66
68
69// --(BEGIN CUSTOM CODE: Schema Methods)--
70// --(END CUSTOM CODE: Schema Methods)--
71
74
75 HD_API
76 HdTokenDataSourceHandle GetPassType() const;
77
78 HD_API
79 HdPathDataSourceHandle GetRenderSource() const;
80
82
85
88 HD_API
89 static const TfToken &GetSchemaToken();
90
93 HD_API
94 static const HdDataSourceLocator &GetDefaultLocator();
95
97
106
108 HD_API
109 static const HdDataSourceLocator &GetPassTypeLocator();
110
112 HD_API
113 static const HdDataSourceLocator &GetRenderSourceLocator();
115
118
126 HD_API
127 static HdContainerDataSourceHandle
128 BuildRetained(
129 const HdTokenDataSourceHandle &passType,
130 const HdPathDataSourceHandle &renderSource
131 );
132
140 {
141 public:
142 HD_API
143 Builder &SetPassType(
144 const HdTokenDataSourceHandle &passType);
145 HD_API
146 Builder &SetRenderSource(
147 const HdPathDataSourceHandle &renderSource);
148
150 HD_API
151 HdContainerDataSourceHandle Build();
152
153 private:
154 HdTokenDataSourceHandle _passType;
155 HdPathDataSourceHandle _renderSource;
156
157 };
158
160};
161
162PXR_NAMESPACE_CLOSE_SCOPE
163
164#endif
Represents an object that can identify the location of a data source.
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
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