All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
systemMessages.h
1//
2// Copyright 2023 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_HD_SYSTEM_MESSAGES_H
8#define PXR_IMAGING_HD_SYSTEM_MESSAGES_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
16
17#define HD_SYSTEM_MESSAGE_TOKENS \
18 /* Indicates that asynchronous processing is allowed and to expect to
19 * receive "asyncPoll" messages to follow. This message provides no
20 * arguments.
21 */ \
22 (asyncAllow) \
23 /* Following a "asyncAllow" message, this will be called periodically on the
24 * application main (or rendering) thread to give scene indices an
25 * opportunity to send notices for completed asynchronous or incremental
26 * work.
27 */ \
28 (asyncPoll) \
29
30TF_DECLARE_PUBLIC_TOKENS(HdSystemMessageTokens, HD_API,
31 HD_SYSTEM_MESSAGE_TOKENS);
32
33
34PXR_NAMESPACE_CLOSE_SCOPE
35
36#endif
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81