forked from PixarAnimationStudios/OpenUSD
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing HdExtComputationCpuCallback and using it in the HdExtComp…
…utation schema. It replaces the HdExtComputationCallbackDataSource in dataSourceLegacyPrim.h. (Internal change: 2341896)
- Loading branch information
1 parent
4c94900
commit ad5d719
Showing
12 changed files
with
124 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Copyright 2024 Pixar | ||
// | ||
// Licensed under the terms set forth in the LICENSE.txt file available at | ||
// https://openusd.org/license. | ||
// | ||
#include "pxr/imaging/hd/extComputationCpuCallback.h" | ||
|
||
PXR_NAMESPACE_OPEN_SCOPE | ||
|
||
HdExtComputationCpuCallback::~HdExtComputationCpuCallback() = default; | ||
|
||
PXR_NAMESPACE_CLOSE_SCOPE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Copyright 2024 Pixar | ||
// | ||
// Licensed under the terms set forth in the LICENSE.txt file available at | ||
// https://openusd.org/license. | ||
// | ||
#ifndef PXR_IMAGING_HD_EXT_COMPUTATION_CPU_CALLBACK_H | ||
#define PXR_IMAGING_HD_EXT_COMPUTATION_CPU_CALLBACK_H | ||
|
||
#include "pxr/pxr.h" | ||
#include "pxr/imaging/hd/api.h" | ||
|
||
#include <memory> | ||
|
||
PXR_NAMESPACE_OPEN_SCOPE | ||
|
||
class HdExtComputationContext; | ||
using HdExtComputationCpuCallbackSharedPtr = | ||
std::shared_ptr<class HdExtComputationCpuCallback>; | ||
|
||
/// \class HdExtComputationCallback | ||
/// | ||
/// A callback for an ext computation filling the outputs given the | ||
/// input values and values of the input computations. | ||
/// | ||
class HdExtComputationCpuCallback | ||
{ | ||
public: | ||
HD_API virtual ~HdExtComputationCpuCallback(); | ||
|
||
/// Run the computation. | ||
virtual void Compute(HdExtComputationContext * ctx) = 0; | ||
}; | ||
|
||
PXR_NAMESPACE_CLOSE_SCOPE | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,4 +105,4 @@ class HdExtComputationPrimvarsSchema : public HdSchema | |
|
||
PXR_NAMESPACE_CLOSE_SCOPE | ||
|
||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters