Loading...
Searching...
No Matches
extComputationInputComputationSchema.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_EXT_COMPUTATION_INPUT_COMPUTATION_SCHEMA_H
19#define PXR_IMAGING_HD_EXT_COMPUTATION_INPUT_COMPUTATION_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_EXT_COMPUTATION_INPUT_COMPUTATION_SCHEMA_TOKENS \
36 (sourceComputation) \
37 (sourceComputationOutputName) \
38
39TF_DECLARE_PUBLIC_TOKENS(HdExtComputationInputComputationSchemaTokens, HD_API,
40 HD_EXT_COMPUTATION_INPUT_COMPUTATION_SCHEMA_TOKENS);
41
42//-----------------------------------------------------------------------------
43
44
47class HdExtComputationInputComputationSchema : public HdSchema
48{
49public:
52
53 HdExtComputationInputComputationSchema(HdContainerDataSourceHandle container)
54 : HdSchema(container) {}
55
57
58// --(BEGIN CUSTOM CODE: Schema Methods)--
59// --(END CUSTOM CODE: Schema Methods)--
60
63
64 HD_API
65 HdPathDataSourceHandle GetSourceComputation() const;
66
67 HD_API
68 HdTokenDataSourceHandle GetSourceComputationOutputName() const;
69
71
74
82 HD_API
83 static HdContainerDataSourceHandle
84 BuildRetained(
85 const HdPathDataSourceHandle &sourceComputation,
86 const HdTokenDataSourceHandle &sourceComputationOutputName
87 );
88
95 class Builder
96 {
97 public:
98 HD_API
99 Builder &SetSourceComputation(
100 const HdPathDataSourceHandle &sourceComputation);
101 HD_API
102 Builder &SetSourceComputationOutputName(
103 const HdTokenDataSourceHandle &sourceComputationOutputName);
104
106 HD_API
107 HdContainerDataSourceHandle Build();
108
109 private:
110 HdPathDataSourceHandle _sourceComputation;
111 HdTokenDataSourceHandle _sourceComputationOutputName;
112
113 };
114
116};
117
118PXR_NAMESPACE_CLOSE_SCOPE
119
120#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:92