Skip to content

Commit ed10fdd

Browse files
Merge branch 'develop' of https://github.com/gpujs/gpu.js into develop
2 parents 254b067 + 87248b6 commit ed10fdd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,10 @@ const result2 = kernel2(result1);
819819
Handling minimal amounts of GPU memory is handled internally, but a good practice is to clean up memory you no longer need.
820820
Cleanup kernel outputs by using `texture.delete()` to keep GPU memory as small as possible.
821821

822-
NOTE: Internally textures will only release from memory if there are no references to them,
822+
NOTE: Internally textures will only release from memory if there are no references to them.
823+
When using pipeline mode on a kernel K the output for each call will be a newly allocated texture T.
824+
If, after getting texture T as an output, T.delete() is called, the next call to K will reuse T as its output texture.
825+
823826

824827
## Offscreen Canvas
825828
GPU.js supports offscreen canvas where available. Here is an example of how to use it with two files, `gpu-worker.js`, and `index.js`:

0 commit comments

Comments
 (0)