Skip to content

Commit

Permalink
chore: Add missing readme, and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Aug 5, 2018
1 parent a0741a1 commit 4485ba0
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 92 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Or alternatively you can experiment around with the [kernel playground here](htt
* [Adding Custom Functions Directly to Kernel](#adding-custom-functions-directly-to-kernel)
* [Loops](#loops)
* [Pipelining](#pipelining)
* [Cleanup](#cleanup)
* (Flattened typed array support)(#flattened-typed-array-support)
* [Supported Math functions](#supported-math-functions)
* [Full API reference](#full-api-reference)
* [Automatically-built Documentation](#automatically-built-documentation)
Expand Down Expand Up @@ -403,6 +405,9 @@ const matMult = gpu.createKernel(function(a, b) {
[Pipeline](https://en.wikipedia.org/wiki/Pipeline_(computing)) is a feature where values are sent directly from kernel to kernel via a texture.
This results in extremely fast computing. This is achieved with the kernel option `outputToTexture: boolean` option or by calling `kernel.setOutputToTexture(true)`

## Cleanup
* for instances of `GPU` use the `destroy` method. Example: `gpu.destroy()`
* for instances of `Kernel` use the `destroy` method. Example: `kernel.destroy()`

## Flattened typed array support
To use the useful `x`, `y`, `z` `thread` lookup api inside of gpu.js, and yet use flattened arrays, there is the `Input` type.
Expand Down
6 changes: 3 additions & 3 deletions bin/gpu-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
*
* GPU Accelerated JavaScript
*
* @version 1.5.5
* @date Sun Aug 05 2018 10:02:59 GMT+0100 (BST)
* @version 1.6.0
* @date Sun Aug 05 2018 15:35:02 GMT-0400 (EDT)
*
* @license MIT
* The MIT License
*
* Copyright (c) 2018 gpu.js Team
*/
"use strict";(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){
'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
Expand Down
6 changes: 3 additions & 3 deletions bin/gpu-core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4485ba0

Please sign in to comment.