]> zoso.dev Git - nano-pow.git/commitdiff
Fix JSdoc parameter and comment.
authorChris Duncan <chris@zoso.dev>
Tue, 11 Mar 2025 20:37:19 +0000 (13:37 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 11 Mar 2025 20:37:19 +0000 (13:37 -0700)
src/classes/gl.ts

index 21e53681264122676a66a917c6ba732d2c37a9d2..96349a54af272f9ec21f1201ab418464b29673c0 100644 (file)
@@ -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 {