Loading...
Searching...
No Matches
rileyPrimvarSchema.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 EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_PRIMVAR_SCHEMA_H
19#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_PRIMVAR_SCHEMA_H
20
22
23#include "hdPrman/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26#include "pxr/imaging/hd/version.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_PRMAN_RILEY_PRIMVAR_SCHEMA_TOKENS \
37 (value) \
38 (detailType) \
39 (role) \
40 (constant) \
41 (uniform) \
42 (vertex) \
43 (varying) \
44 (facevarying) \
45 (reference) \
46
47TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyPrimvarSchemaTokens, HDPRMAN_API,
48 HD_PRMAN_RILEY_PRIMVAR_SCHEMA_TOKENS);
49
50//-----------------------------------------------------------------------------
51
52
53class HdPrmanRileyPrimvarSchema : public HdSchema
54{
55public:
58
59 HdPrmanRileyPrimvarSchema(HdContainerDataSourceHandle container)
60 : HdSchema(container) {}
61
63
64// --(BEGIN CUSTOM CODE: Schema Methods)--
65// --(END CUSTOM CODE: Schema Methods)--
66
69
70 HDPRMAN_API
71 HdSampledDataSourceHandle GetValue()
72#if HD_API_VERSION >= 66
73 const;
74#else
75 ;
76#endif
77
78
79 HDPRMAN_API
80 HdTokenDataSourceHandle GetDetailType()
81#if HD_API_VERSION >= 66
82 const;
83#else
84 ;
85#endif
86
87
90 HDPRMAN_API
91 HdTokenDataSourceHandle GetRole()
92#if HD_API_VERSION >= 66
93 const;
94#else
95 ;
96#endif
97
98
100
103
111 HDPRMAN_API
112 static HdContainerDataSourceHandle
113 BuildRetained(
114 const HdSampledDataSourceHandle &value,
115 const HdTokenDataSourceHandle &detailType,
116 const HdTokenDataSourceHandle &role
117 );
118
126 {
127 public:
128 HDPRMAN_API
129 Builder &SetValue(
130 const HdSampledDataSourceHandle &value);
131 HDPRMAN_API
132 Builder &SetDetailType(
133 const HdTokenDataSourceHandle &detailType);
134 HDPRMAN_API
135 Builder &SetRole(
136 const HdTokenDataSourceHandle &role);
137
139 HDPRMAN_API
140 HdContainerDataSourceHandle Build();
141
142 private:
143 HdSampledDataSourceHandle _value;
144 HdTokenDataSourceHandle _detailType;
145 HdTokenDataSourceHandle _role;
146
147 };
148
159 HDPRMAN_API
160 static HdTokenDataSourceHandle BuildDetailTypeDataSource(
161 const TfToken &detailType);
162
164};
165
166PXR_NAMESPACE_CLOSE_SCOPE
167
168#endif
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HDPRMAN_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