Skip to content

Commit dd1dcbd

Browse files
fix: Documentation
1 parent 141a810 commit dd1dcbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ worker.onmessage = function(e) {
891891
* for instances of `GPU` use the `destroy` method. Example: `gpu.destroy()`
892892
* for instances of `Kernel` use the `destroy` method. Example: `kernel.destroy()`
893893
* for instances of `Texture` use the `delete` method. Example: `texture.delete()`
894-
* for instances of `Texture` that you might want to reuse/reset to zeros, use the `empty` method. Example: `texture.empty()`
894+
* for instances of `Texture` that you might want to reuse/reset to zeros, use the `clear` method. Example: `texture.clear()`
895895

896896
## Flattened typed array support
897897
To use the useful `x`, `y`, `z` `thread` lookup api inside of GPU.js, and yet use flattened arrays, there is the `Input` type.

0 commit comments

Comments
 (0)