HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XUSD_ShaderRegistry.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Side Effects Software Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef __XUSD_ShaderRegistry_h__
19 #define __XUSD_ShaderRegistry_h__
20 
21 #include "HUSD_API.h"
22 #include <UT/UT_StringHolder.h>
23 #include <pxr/pxr.h>
24 
25 class UT_StringArray;
26 
28 class UsdPrim;
29 class SdfValueTypeName;
30 class VtValue;
31 
33 {
34 public:
35  /// Obtains shader input names from the given primitive, if that primitive
36  /// is a shader.
37  /// @return True on success, false otherwise.
38  static bool getShaderInputNames( const UsdPrim &prim,
39  UT_StringArray &input_names);
40 
41  /// Obtains information about the given shader primitive input.
42  /// @return True on success, false otherwise.
43  static bool getShaderInputInfo( const UsdPrim &prim,
44  const UT_StringRef &input_name,
45  SdfValueTypeName *type = nullptr,
46  VtValue *default_value = nullptr,
47  UT_StringHolder *label = nullptr );
48 };
49 
51 
52 #endif
53 
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
#define HUSD_API
Definition: HUSD_API.h:32
Definition: prim.h:133
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1432
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
type
Definition: core.h:1059
Definition: value.h:164