From da7e2eaea3ddf26aad1b0c7c82f1dcb2c090c6d8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 11 Mar 2025 13:37:19 -0700 Subject: [PATCH] Fix JSdoc parameter and comment. --- src/classes/gl.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/classes/gl.ts b/src/classes/gl.ts index 21e5368..96349a5 100644 --- a/src/classes/gl.ts +++ b/src/classes/gl.ts @@ -276,11 +276,12 @@ export class NanoPowGl { } /** - * Reads pixels into the work buffer, checks every 4th pixel for the 'found' - * byte, converts the subsequent 3 pixels with the nonce byte values to a hex - * string, and returns the result. + * When a result is found by the `gl.query`, downsamples the texture to speed + * up the subsequent `readPixels` call, reads the pixels into the work buffer, + * checks every 4th pixel for the 'found' byte, converts the subsequent two + * pixels with the nonce byte values to a hex string, and returns the result. * - * @param workHex - Original nonce if provided for a validation call + * @param {string} [workHex] - Original nonce if provided for a validation call * @returns Nonce as an 8-byte (16-char) hexadecimal string */ static #readResult (workHex?: string): string { -- 2.34.1