tokens.h
1 //
2 // Copyright 2020 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_HGI_TOKENS_H
8 #define PXR_IMAGING_HGI_TOKENS_H
9 
10 #include "pxr/pxr.h"
12 
13 #include "pxr/imaging/hgi/api.h"
14 
15 PXR_NAMESPACE_OPEN_SCOPE
16 
17 #define HGI_TOKENS \
18  (taskDriver) \
19  (renderDriver) \
20  (OpenGL) \
21  (Metal) \
22  (Vulkan)
23 
24 TF_DECLARE_PUBLIC_TOKENS(HgiTokens, HGI_API, HGI_TOKENS);
25 
26 #define HGI_SHADER_KEYWORD_TOKENS \
27  (hdPosition) \
28  (hdPointCoord) \
29  (hdClipDistance) \
30  (hdCullDistance) \
31  (hdVertexID) \
32  (hdInstanceID) \
33  (hdPrimitiveID) \
34  (hdSampleID) \
35  (hdSamplePosition) \
36  (hdFragCoord) \
37  (hdFrontFacing) \
38  (hdLayer) \
39  (hdBaseVertex) \
40  (hdBaseInstance) \
41  (hdViewportIndex) \
42  (hdPositionInPatch) \
43  (hdPatchID) \
44  (hdGlobalInvocationID) \
45  (hdBaryCoordNoPersp) \
46  (hdSampleMaskIn) \
47  (hdSampleMask) \
48  (hdDepthAny) \
49  (hdDepthGreater) \
50  (hdDepthLess) \
51 
53  HgiShaderKeywordTokens, HGI_API, HGI_SHADER_KEYWORD_TOKENS);
54 
55 PXR_NAMESPACE_CLOSE_SCOPE
56 
57 #endif
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92
This file defines some macros that are useful for declaring and using static TfTokens.