1.3.1 • Published 4 years ago

gpu-mock.js v1.3.1

Weekly downloads
3,072
License
MIT
Repository
github
Last release
4 years ago

gpu-mock.js

A simple mocker for testing threaded development.

GPU testing

GPU testing should be easy, but it isn't... ur, uh, wasn't. This lib aims to resolve that. By testing with simple javascript that is transpiled to GPU code, we can have the best of both worlds. A mature debugging environment (javascript), and an accelerated environment (glsl).

Install

npm i gpu-mock.js --saveDev

Use

import { gpuMock } from 'gpu-mock.js'

const testKernel = gpuMock(myKernelFunction, gpuJsOptions);

const results = testKernel();

Why

gpu.js, and further the GPU, do a lot under the hood that can make debugging challenging. gpu-mock.js provides a pure and simple javascript environment for testing the functions that are planned to be used with gpu.js.

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago