Loading...
Searching...
No Matches
declare.h
Go to the documentation of this file.
1//
2// Copyright 2018 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_SDR_DECLARE_H
8#define PXR_USD_SDR_DECLARE_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/ndr/declare.h"
14
15#include <memory>
16#include <vector>
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20class SdrShaderNode;
22
24
25// ShaderNode
27typedef SdrShaderNode const* SdrShaderNodeConstPtr;
28typedef std::unique_ptr<SdrShaderNode> SdrShaderNodeUniquePtr;
29typedef std::vector<SdrShaderNodeConstPtr> SdrShaderNodePtrVec;
30
31// ShaderProperty
33typedef SdrShaderProperty const* SdrShaderPropertyConstPtr;
34typedef std::unique_ptr<SdrShaderProperty> SdrShaderPropertyUniquePtr;
35typedef std::unordered_map<TfToken, SdrShaderPropertyConstPtr,
36 TfToken::HashFunctor> SdrPropertyMap;
37
38PXR_NAMESPACE_CLOSE_SCOPE
39
40#endif // PXR_USD_SDR_DECLARE_H
A specialized version of NdrNode which holds shading information.
Definition: shaderNode.h:70
A specialized version of NdrProperty which holds shading information.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Functor to use for hash maps from tokens to other things.
Definition: token.h:149
Common typedefs that are used throughout the NDR library.
SdrShaderNode * SdrShaderNodePtr
Common typedefs that are used throughout the SDR library.
Definition: declare.h:26