wgsl-play 0.0.5 → 0.0.6
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/package.json +3 -3
- package/src/WgslPlay.ts +1 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wgsl-play",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "github:wgsl-tooling-wg/wesl-js",
|
|
6
6
|
"exports": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"fflate": "^0.8.2",
|
|
13
13
|
"nanotar": "^0.2.0",
|
|
14
14
|
"resolve.exports": "^2.0.3",
|
|
15
|
-
"wesl": "0.7.
|
|
16
|
-
"wesl-gpu": "0.1.
|
|
15
|
+
"wesl": "0.7.2",
|
|
16
|
+
"wesl-gpu": "0.1.5"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@playwright/test": "^1.53.2",
|
package/src/WgslPlay.ts
CHANGED
|
@@ -35,20 +35,7 @@ export interface CompileErrorDetail {
|
|
|
35
35
|
let styles: CSSStyleSheet | null = null;
|
|
36
36
|
let template: HTMLTemplateElement | null = null;
|
|
37
37
|
|
|
38
|
-
/**
|
|
39
|
-
* <wgsl-play> - Web component for rendering WESL/WGSL fragment shaders.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* <!-- From URL -->
|
|
43
|
-
* <wgsl-play src="./shader.wesl"></wgsl-play>
|
|
44
|
-
*
|
|
45
|
-
* <!-- Inline source -->
|
|
46
|
-
* <wgsl-play>
|
|
47
|
-
* @fragment fn fs_main() -> @location(0) vec4f {
|
|
48
|
-
* return vec4f(1.0, 0.0, 0.0, 1.0);
|
|
49
|
-
* }
|
|
50
|
-
* </wgsl-play>
|
|
51
|
-
*/
|
|
38
|
+
/** <wgsl-play> web component for rendering WESL/WGSL fragment shaders. */
|
|
52
39
|
export class WgslPlay extends HTMLElement {
|
|
53
40
|
static observedAttributes = ["src", "shader-root"];
|
|
54
41
|
|