wgsl-renderer 0.3.3 → 0.3.4

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/dist/cjs/index.js CHANGED
@@ -456,10 +456,6 @@ var WGSLRenderer = class {
456
456
  * @param options Optional texture creation options for when the texture needs to be created
457
457
  */
458
458
  getPassTexture(passName, options) {
459
- const pass = this.passes.find((pass$1) => pass$1.name === passName);
460
- if (!pass) throw new Error(`Cannot find pass named '${passName}'. Available passes: [${this.passes.map((p) => p.name).join(", ")}]`);
461
- const f = options?.format ?? "rgba8unorm";
462
- if (pass.format && f !== pass.format) throw new Error(`Format must be set to ${pass.format}, pass name: '${passName}'`);
463
459
  return PassTextureRef.create(passName, options);
464
460
  }
465
461
  /**
package/dist/esm/index.js CHANGED
@@ -455,10 +455,6 @@ var WGSLRenderer = class {
455
455
  * @param options Optional texture creation options for when the texture needs to be created
456
456
  */
457
457
  getPassTexture(passName, options) {
458
- const pass = this.passes.find((pass$1) => pass$1.name === passName);
459
- if (!pass) throw new Error(`Cannot find pass named '${passName}'. Available passes: [${this.passes.map((p) => p.name).join(", ")}]`);
460
- const f = options?.format ?? "rgba8unorm";
461
- if (pass.format && f !== pass.format) throw new Error(`Format must be set to ${pass.format}, pass name: '${passName}'`);
462
458
  return PassTextureRef.create(passName, options);
463
459
  }
464
460
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgsl-renderer",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "A multi-pass renderer based on WebGPU and WGSL.",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",