path tracing: denoiser job safety fix

This commit is contained in:
Turánszki János
2025-10-05 09:24:46 +02:00
parent 20d512eb63
commit e2ca5b36db
3 changed files with 9 additions and 2 deletions
@@ -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();
+3 -1
View File
@@ -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;
};
+1 -1
View File
@@ -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);