@derschmale/tiny-helix 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ /// <reference types="@webgpu/types" />
2
+ import { Texture } from "../Texture";
3
+ import { WebGPUContext } from "../WebGPUContext";
4
+ export declare class MipRenderer {
5
+ private _pipeline;
6
+ private _ctx;
7
+ private _bindgroupLayout;
8
+ private _bindgroups;
9
+ private _views;
10
+ private _passDescs;
11
+ constructor(ctx: WebGPUContext, shader: GPUShaderModule, texture: Texture);
12
+ render(): void;
13
+ }
@@ -5,6 +5,8 @@
5
5
  *
6
6
  * @param input - The input ArrayBuffer or SharedArrayBuffer to pad
7
7
  * @param alignment - Desired byte alignment (e.g. 4 for 32-bit alignment)
8
+ * @param offset - The offset in bytes from the start of the input buffer to begin copying from
9
+ * @param size - The number of bytes to copy from the input buffer
8
10
  * @returns A buffer with byteLength rounded up to the nearest multiple of alignment
9
11
  */
10
- export declare function padArrayBuffer(input: ArrayBuffer | SharedArrayBuffer, alignment: number): ArrayBuffer | SharedArrayBuffer;
12
+ export declare function padArrayBuffer(input: ArrayBuffer | SharedArrayBuffer, alignment: number, offset: number, size: number): ArrayBuffer | SharedArrayBuffer;
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "@derschmale/tiny-helix",
3
- "version": "0.1.0",
4
- "description": "A TypeScript library for WebGPU",
5
- "main": "dist/tiny-helix.js",
6
- "module": "dist/tiny-helix.esm.js",
7
- "types": "dist/index.d.ts",
8
- "type": "module",
9
- "files": [
10
- "dist"
11
- ],
12
- "scripts": {
13
- "build": "webpack --config webpack.config.cjs",
14
- "build:debug": "webpack --config webpack.config.cjs",
15
- "docs": "npx typedoc --out docs src",
16
- "lint": "eslint src --ext .ts",
17
- "test": "jest",
18
- "prepublishOnly": "npm run build"
19
- },
20
- "keywords": [
21
- "webgpu",
22
- "typescript",
23
- "graphics",
24
- "3d"
25
- ],
26
- "author": "David Lenaerts",
27
- "license": "MIT",
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/DerSchmale/tiny-helix.git"
31
- },
32
- "devDependencies": {
33
- "@types/jest": "^29.5.11",
34
- "@typescript-eslint/eslint-plugin": "^6.14.0",
35
- "@typescript-eslint/parser": "^6.14.0",
36
- "@webgpu/types": "^0.1.66",
37
- "eslint": "^8.56.0",
38
- "jest": "^29.7.0",
39
- "ts-jest": "^29.1.1",
40
- "ts-loader": "^9.5.1",
41
- "typescript": "^5.3.3",
42
- "webpack": "^5.89.0",
43
- "webpack-cli": "^5.1.4",
44
- "typedoc": "^0.25.0"
45
- },
46
- "peerDependencies": {
47
- "@webgpu/types": ">=0.1.0"
48
- },
49
- "peerDependenciesMeta": {
50
- "@webgpu/types": {
51
- "optional": true
52
- }
53
- }
54
- }
1
+ {
2
+ "name": "@derschmale/tiny-helix",
3
+ "version": "0.2.0",
4
+ "description": "A TypeScript library for WebGPU",
5
+ "main": "dist/tiny-helix.js",
6
+ "module": "dist/tiny-helix.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "webpack --config webpack.config.cjs",
14
+ "build:debug": "webpack --config webpack.config.cjs",
15
+ "docs": "npx typedoc --out docs src",
16
+ "lint": "eslint src --ext .ts",
17
+ "test": "jest",
18
+ "prepublishOnly": "npm run build"
19
+ },
20
+ "keywords": [
21
+ "webgpu",
22
+ "typescript",
23
+ "graphics",
24
+ "3d"
25
+ ],
26
+ "author": "David Lenaerts",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/DerSchmale/tiny-helix.git"
31
+ },
32
+ "devDependencies": {
33
+ "@types/jest": "^29.5.11",
34
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
35
+ "@typescript-eslint/parser": "^6.14.0",
36
+ "@webgpu/types": "^0.1.66",
37
+ "eslint": "^8.56.0",
38
+ "jest": "^29.7.0",
39
+ "ts-jest": "^29.1.1",
40
+ "ts-loader": "^9.5.1",
41
+ "typescript": "^5.3.3",
42
+ "webpack": "^5.89.0",
43
+ "webpack-cli": "^5.1.4",
44
+ "typedoc": "^0.25.0"
45
+ },
46
+ "peerDependencies": {
47
+ "@webgpu/types": ">=0.1.0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "@webgpu/types": {
51
+ "optional": true
52
+ }
53
+ }
54
+ }