Loading...
Searching...
No Matches
extComputationCpuCallback.h
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
15PXR_NAMESPACE_OPEN_SCOPE
16
18using HdExtComputationCpuCallbackSharedPtr =
19 std::shared_ptr<class HdExtComputationCpuCallback>;
20
26class HdExtComputationCpuCallback
27{
28public:
29 HD_API virtual ~HdExtComputationCpuCallback();
30
32 virtual void Compute(HdExtComputationContext * ctx) = 0;
33};
34
35PXR_NAMESPACE_CLOSE_SCOPE
36
37#endif
Interface class that defines the execution environment for the client to run a computation.