Skip to content

Commit

Permalink
Update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Dec 29, 2023
1 parent 7bf0e7f commit fdd5862
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/core/Pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,9 @@ export abstract class Pass<TMaterial extends Material | null = null>
}

/**
* 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.
Expand All @@ -407,21 +408,27 @@ export abstract class Pass<TMaterial extends Material | null = null>
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 {}
Expand Down

0 comments on commit fdd5862

Please sign in to comment.