Skip to content

Commit 3c840fe

Browse files
Merge branch 'develop'
2 parents 6050e6a + 9fc5b54 commit 3c840fe

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Or alternatively you can experiment around with the [kernel playground here](htt
3838

3939
# Table of Contents
4040

41+
NOTE: documentation is slightly out of date for the upcoming release of v2. We will fix it! In the mean time, if you'd like to assist (PLEASE) let us know.
42+
4143
* [Installation](#installation)
4244
* [`GPU` Settings](#gpu-settings)
4345
* [`gpu.createKernel` Settings](#gpu-createkernel-settings)

src/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export class GPU {
1111
constructor(settings?: IGPUSettings);
1212
functions: IGPUFunction[];
1313
nativeFunctions: IGPUNativeFunction[];
14-
addFunction(kernel: KernelFunction, settings?: IGPUFunctionSettings);
15-
addNativeFunction(name: string, source: string);
16-
combineKernels(): KernelFunction;
14+
addFunction(kernel: KernelFunction, settings?: IGPUFunctionSettings): this;
15+
addNativeFunction(name: string, source: string): this;
16+
combineKernels(...kernels: Function[]): KernelFunction;
1717
createKernel(kernel: KernelFunction, settings?: IKernelSettings): IKernelRunShortcut;
18-
createKernelMap(): IKernelRunShortcut;
19-
destroy();
18+
createKernelMap(subKernels: Object | Array<Function>, rootKernel: Function): IKernelRunShortcut;
19+
destroy(): void;
2020
Kernel: typeof Kernel;
2121
mode: string;
2222
canvas: any;
@@ -136,8 +136,8 @@ export class Kernel {
136136
): KernelVariable
137137
toJSON(): object;
138138
exec(): Promise<KernelOutput>;
139-
setOutput(flag): this;
140-
setArgumentTypes(flag): this;
139+
setOutput(flag: any): this;
140+
setArgumentTypes(flag: any): this;
141141
setDebug(flag: boolean): this;
142142
setGraphical(flag: boolean): this;
143143
setLoopMaxIterations(flag: number): this;
@@ -286,7 +286,7 @@ export interface ISubKernel {
286286
export class FunctionBuilder {
287287
fromKernel(kernel: IKernelSettings, FunctionNode: FunctionNode, extraNodeOptions?: any): FunctionBuilder;
288288
constructor(settings: IFunctionBuilderSettings);
289-
addFunctionNode(functionNode: FunctionNode);
289+
addFunctionNode(functionNode: FunctionNode): void;
290290
traceFunctionCalls(functionName: string): string[];
291291
getStringFromFunctionNames(functionName?: string[]): string;
292292
getPrototypesFromFunctionNames(functionName?: string[]): string[];

0 commit comments

Comments
 (0)