HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
extComputationPrimvarsSchema.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 //
7 ////////////////////////////////////////////////////////////////////////
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_PRIMVARS_SCHEMA_H
19 #define PXR_IMAGING_HD_EXT_COMPUTATION_PRIMVARS_SCHEMA_H
20 
21 /// \file
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 
32 
33 // --(BEGIN CUSTOM CODE: Declares)--
34 // --(END CUSTOM CODE: Declares)--
35 
36 #define HD_EXT_COMPUTATION_PRIMVARS_SCHEMA_TOKENS \
37  (extComputationPrimvars) \
38 
39 TF_DECLARE_PUBLIC_TOKENS(HdExtComputationPrimvarsSchemaTokens, HD_API,
41 
42 //-----------------------------------------------------------------------------
43 
44 
46 {
47 public:
48  /// \name Schema retrieval
49  /// @{
50 
51  HdExtComputationPrimvarsSchema(HdContainerDataSourceHandle container)
52  : HdSchema(container) {}
53 
54  /// Retrieves a container data source with the schema's default name token
55  /// "extComputationPrimvars" from the parent container and constructs a
56  /// HdExtComputationPrimvarsSchema instance.
57  /// Because the requested container data source may not exist, the result
58  /// should be checked with IsDefined() or a bool comparison before use.
59  HD_API
61  const HdContainerDataSourceHandle &fromParentContainer);
62 
63  /// @}
64 
65 // --(BEGIN CUSTOM CODE: Schema Methods)--
66 // --(END CUSTOM CODE: Schema Methods)--
67 
68  /// \name Member accessor
69  /// @{
70 
71  HD_API
73 
74  HD_API
76 
77  /// @}
78 
79  /// \name Schema location
80  /// @{
81 
82  /// Returns a token where the container representing this schema is found in
83  /// a container by default.
84  HD_API
85  static const TfToken &GetSchemaToken();
86 
87  /// Returns an HdDataSourceLocator (relative to the prim-level data source)
88  /// where the container representing this schema is found by default.
89  HD_API
90  static const HdDataSourceLocator &GetDefaultLocator();
91 
92  /// @}
93 
94  /// \name Schema construction
95  /// @{
96  HD_API
97  static HdContainerDataSourceHandle
99  size_t count,
100  const TfToken *names,
101  const HdDataSourceBaseHandle *values);
102 
103  /// @}
104 };
105 
107 
108 #endif
#define HD_API
Definition: api.h:23
static HD_API HdContainerDataSourceHandle BuildRetained(size_t count, const TfToken *names, const HdDataSourceBaseHandle *values)
HD_API HdExtComputationPrimvarSchema GetExtComputationPrimvar(const TfToken &name) const
Definition: token.h:70
static HD_API const HdDataSourceLocator & GetDefaultLocator()
HdExtComputationPrimvarsSchema(HdContainerDataSourceHandle container)
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
static HD_API const TfToken & GetSchemaToken()
GLuint const GLchar * name
Definition: glcorearb.h:786
static HD_API HdExtComputationPrimvarsSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
GLenum GLsizei GLsizei GLint * values
Definition: glcorearb.h:1602
HD_API TfTokenVector GetExtComputationPrimvarNames() const
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
#define HD_EXT_COMPUTATION_PRIMVARS_SCHEMA_TOKENS
TF_DECLARE_PUBLIC_TOKENS(HdExtComputationPrimvarsSchemaTokens, HD_API, HD_EXT_COMPUTATION_PRIMVARS_SCHEMA_TOKENS)
GLint GLsizei count
Definition: glcorearb.h:405