Loading...
Searching...
No Matches
types.h
1//
2// Copyright 2016 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_IMAGING_HDX_TYPES_H
8#define PXR_IMAGING_HDX_TYPES_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hdx/api.h"
12#include "pxr/imaging/hdx/version.h"
13#include "pxr/imaging/hgi/types.h"
14#include "pxr/imaging/hio/types.h"
15#include "pxr/base/tf/token.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20
21// Struct used to send shader inputs from Presto and send them to Hydra
22struct HdxShaderInputs {
23 VtDictionary parameters;
24 VtDictionary textures;
25 VtDictionary textureFallbackValues;
26 TfTokenVector attributes;
27 VtDictionary metaData;
28};
29
30HDX_API
31bool operator==(const HdxShaderInputs& lhs, const HdxShaderInputs& rhs);
32HDX_API
33bool operator!=(const HdxShaderInputs& lhs, const HdxShaderInputs& rhs);
34HDX_API
35std::ostream& operator<<(std::ostream& out, const HdxShaderInputs& pv);
36
38HDX_API
39HioFormat HdxGetHioFormat(HgiFormat hgiFormat);
40
41PXR_NAMESPACE_CLOSE_SCOPE
42
43#endif //PXR_IMAGING_HDX_TYPES_H
A map with string keys and VtValue values.
Definition: dictionary.h:52
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440