@eigong/effekseer-webgpu-runtime 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2011 Effekseer Project
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @eigong/effekseer-webgpu-runtime
2
+
3
+ `@eigong/effekseer-webgpu-runtime` redistributes the Effekseer WebGPU runtime files needed by browser integrations.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @eigong/effekseer-webgpu-runtime
9
+ ```
10
+
11
+ ## Contents
12
+
13
+ - `fflate.umd.js`
14
+ - `Effekseer_WebGPU_Runtime.js`
15
+ - `Effekseer_WebGPU_Runtime.wasm`
16
+ - `effekseer.webgpu.src.js`
17
+
18
+ ## Usage
19
+
20
+ ```js
21
+ import {
22
+ fflateUrl,
23
+ effekseerWebgpuRuntimeJsUrl,
24
+ effekseerWebgpuRuntimeWasmUrl,
25
+ effekseerWebgpuBridgeUrl,
26
+ } from '@eigong/effekseer-webgpu-runtime'
27
+ ```
28
+
29
+ Or resolve all four at once:
30
+
31
+ ```js
32
+ import { getEffekseerWebGPURuntimeUrls } from '@eigong/effekseer-webgpu-runtime'
33
+
34
+ const urls = getEffekseerWebGPURuntimeUrls()
35
+ ```
36
+
37
+ ## License
38
+
39
+ This package redistributes Effekseer runtime files under the MIT License.
40
+
41
+ Copyright (c) 2011 Effekseer Project
42
+
43
+ See [LICENSE](./LICENSE).
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export declare const fflateUrl: string
2
+ export declare const effekseerWebgpuRuntimeJsUrl: string
3
+ export declare const effekseerWebgpuRuntimeWasmUrl: string
4
+ export declare const effekseerWebgpuBridgeUrl: string
5
+
6
+ export declare function getEffekseerWebGPURuntimeUrls(): {
7
+ fflateUrl: string
8
+ effekseerWebgpuRuntimeJsUrl: string
9
+ effekseerWebgpuRuntimeWasmUrl: string
10
+ effekseerWebgpuBridgeUrl: string
11
+ }
package/index.js ADDED
@@ -0,0 +1,13 @@
1
+ export const fflateUrl = new URL('./runtime/fflate.umd.js', import.meta.url).href
2
+ export const effekseerWebgpuRuntimeJsUrl = new URL('./runtime/Effekseer_WebGPU_Runtime.js', import.meta.url).href
3
+ export const effekseerWebgpuRuntimeWasmUrl = new URL('./runtime/Effekseer_WebGPU_Runtime.wasm', import.meta.url).href
4
+ export const effekseerWebgpuBridgeUrl = new URL('./runtime/effekseer.webgpu.src.js', import.meta.url).href
5
+
6
+ export function getEffekseerWebGPURuntimeUrls() {
7
+ return {
8
+ fflateUrl,
9
+ effekseerWebgpuRuntimeJsUrl,
10
+ effekseerWebgpuRuntimeWasmUrl,
11
+ effekseerWebgpuBridgeUrl,
12
+ }
13
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@eigong/effekseer-webgpu-runtime",
3
+ "version": "0.1.0",
4
+ "description": "Redistributable Effekseer WebGPU runtime assets with MIT license notice",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "module": "./index.js",
8
+ "types": "./index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./index.d.ts",
12
+ "import": "./index.js"
13
+ },
14
+ "./fflate.umd.js": "./runtime/fflate.umd.js",
15
+ "./Effekseer_WebGPU_Runtime.js": "./runtime/Effekseer_WebGPU_Runtime.js",
16
+ "./Effekseer_WebGPU_Runtime.wasm": "./runtime/Effekseer_WebGPU_Runtime.wasm",
17
+ "./effekseer.webgpu.src.js": "./runtime/effekseer.webgpu.src.js"
18
+ },
19
+ "files": [
20
+ "index.js",
21
+ "index.d.ts",
22
+ "runtime",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "keywords": [
27
+ "effekseer",
28
+ "webgpu",
29
+ "runtime",
30
+ "wasm"
31
+ ],
32
+ "license": "MIT",
33
+ "sideEffects": false,
34
+ "publishConfig": {
35
+ "access": "public"
36
+ }
37
+ }