HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
extComputationCpuCallback.h
Go to the documentation of this file.
1 //
2 // Copyright 2024 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_EXT_COMPUTATION_CPU_CALLBACK_H
8 #define PXR_IMAGING_HD_EXT_COMPUTATION_CPU_CALLBACK_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hd/api.h"
12 
13 #include <memory>
14 
16 
19  std::shared_ptr<class HdExtComputationCpuCallback>;
20 
21 /// \class HdExtComputationCallback
22 ///
23 /// A callback for an ext computation filling the outputs given the
24 /// input values and values of the input computations.
25 ///
27 {
28 public:
30 
31  /// Run the computation.
32  virtual void Compute(HdExtComputationContext * ctx) = 0;
33 };
34 
36 
37 #endif
virtual void Compute(HdExtComputationContext *ctx)=0
Run the computation.
#define HD_API
Definition: api.h:23
std::shared_ptr< class HdExtComputationCpuCallback > HdExtComputationCpuCallbackSharedPtr
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
virtual HD_API ~HdExtComputationCpuCallback()