From fdd58629c9b8268575b97ab82e0408053fdab981 Mon Sep 17 00:00:00 2001 From: "Raoul v. R" Date: Fri, 29 Dec 2023 17:44:21 +0100 Subject: [PATCH] Update doc comments --- src/core/Pass.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/core/Pass.ts b/src/core/Pass.ts index 2d72e31ab..835c63020 100644 --- a/src/core/Pass.ts +++ b/src/core/Pass.ts @@ -396,8 +396,9 @@ export abstract class Pass } /** - * Override this method to check if the current device supports the necessary features. + * Checks if the current renderer supports all features that are required by this pass. * + * Override this method to check if the current device supports the necessary features. * This method should throw an error if the requirements are not met. * * @param renderer - The current renderer. @@ -407,21 +408,27 @@ export abstract class Pass checkRequirements(renderer: WebGLRenderer): void {} /** + * Performs tasks when the input resources have changed. + * * Override this method to handle input changes. */ protected onInputChange(): void {} /** + * Performs tasks when the output resources have changed. + * * Override this method to handle output changes. */ protected onOutputChange(): void {} /** + * Performs tasks when the resolution has changed. + * * Override this method to handle resolution changes. * - * @param resolution - The resolution. + * @param resolution - The updated resolution of this pass. */ protected onResolutionChange(resolution: Resolution): void {}