path tracing: denoiser job safety fix
This commit is contained in:
@@ -40,6 +40,11 @@ namespace wi
|
||||
bool RenderPath3D_PathTracing::isDenoiserAvailable() const { return false; }
|
||||
#endif // OPEN_IMAGE_DENOISE
|
||||
|
||||
RenderPath3D_PathTracing::~RenderPath3D_PathTracing()
|
||||
{
|
||||
wi::jobsystem::Wait(denoiserContext);
|
||||
}
|
||||
|
||||
void RenderPath3D_PathTracing::ResizeBuffers()
|
||||
{
|
||||
DeleteGPUResources();
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace wi
|
||||
|
||||
public:
|
||||
|
||||
~RenderPath3D_PathTracing();
|
||||
|
||||
void Update(float dt) override;
|
||||
void Render() const override;
|
||||
void Compose(wi::graphics::CommandList cmd) const override;
|
||||
@@ -40,7 +42,7 @@ namespace wi
|
||||
float getDenoiserProgress() const { return denoiserProgress; }
|
||||
bool isDenoiserAvailable() const;
|
||||
|
||||
void resetProgress() { sam = -1; denoiserProgress = 0; volumetriccloudResources.ResetFrame(); }
|
||||
void resetProgress() { wi::jobsystem::Wait(denoiserContext); sam = -1; denoiserProgress = 0; volumetriccloudResources.ResetFrame(); }
|
||||
|
||||
uint8_t instanceInclusionMask_PathTrace = 0xFF;
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace wi::version
|
||||
// minor features, major updates, breaking compatibility changes
|
||||
const int minor = 71;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 833;
|
||||
const int revision = 834;
|
||||
|
||||
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user