HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
27
PXR_NAMESPACE_OPEN_SCOPE
28
class
UsdPrim
;
29
class
SdfValueTypeName
;
30
class
VtValue
;
31
32
class
HUSD_API
XUSD_ShaderRegistry
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
50
PXR_NAMESPACE_CLOSE_SCOPE
51
52
#endif
53
label
GLuint GLsizei const GLchar * label
Definition:
glcorearb.h:2545
HUSD_API
#define HUSD_API
Definition:
HUSD_API.h:32
SdfValueTypeName
Definition:
valueTypeName.h:87
XUSD_ShaderRegistry
Definition:
XUSD_ShaderRegistry.h:32
UT_StringRef
Definition:
UT_StringHolder.h:188
UT_StringHolder
Definition:
UT_StringHolder.h:999
UT_StringArray
Definition:
UT_StringArray.h:24
pxr.h
HUSD_API.h
UsdPrim
Definition:
prim.h:133
PXR_NAMESPACE_OPEN_SCOPE
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition:
path.h:1432
UT_StringHolder.h
PXR_NAMESPACE_CLOSE_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition:
pxr.h:91
type
type
Definition:
core.h:1059
VtValue
Definition:
value.h:164
HUSD
XUSD_ShaderRegistry.h
Generated on Tue Dec 17 2024 03:39:52 for HDK by
1.8.6