@next2d/webgpu 3.18.0 → 3.19.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/webgpu",
3
- "version": "3.18.0",
3
+ "version": "3.19.1",
4
4
  "description": "Next2D WebGPU Package",
5
5
  "author": "Toshiyuki Ienaga<ienaga@next2d.app> (https://github.com/ienaga/)",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "url": "git+https://github.com/Next2D/Player.git"
25
25
  },
26
26
  "dependencies": {
27
- "@next2d/texture-packer": "3.18.0",
28
- "@next2d/render-queue": "3.18.0"
27
+ "@next2d/texture-packer": "3.19.1",
28
+ "@next2d/render-queue": "3.19.1"
29
29
  }
30
30
  }
package/src/Context.d.ts CHANGED
@@ -470,6 +470,17 @@ export declare class Context {
470
470
  * @return {void}
471
471
  */
472
472
  clip(): void;
473
+ /**
474
+ * @description 描画先を attachment_object に戻す (WebGL 版と同じ呼び出し口)。
475
+ * WebGPU では描画先の切り替えはレンダーパスの開始時に反映されるので、bind と同じ。
476
+ * Go back to attachment_object as the render target (same entry point as the WebGL
477
+ * context). In WebGPU a target switch only takes effect when a render pass begins,
478
+ * so this is the same as bind.
479
+ *
480
+ * @param {IAttachmentObject} attachment_object
481
+ * @return {void}
482
+ */
483
+ deferBind(attachment_object: IAttachmentObject): void;
473
484
  /**
474
485
  * @description アタッチメントオブジェクトをバインド
475
486
  * Bind an attachment object
package/src/Context.js CHANGED
@@ -1208,6 +1208,19 @@ export class Context {
1208
1208
  }
1209
1209
  contextClipUseCase(this.device, this.renderPassEncoder, this.bufferManager, this.pipelineManager, currentAttachment, pathVertices, this.$matrix, this.$fillStyle, this.globalAlpha, isMainAttachment);
1210
1210
  }
1211
+ /**
1212
+ * @description 描画先を attachment_object に戻す (WebGL 版と同じ呼び出し口)。
1213
+ * WebGPU では描画先の切り替えはレンダーパスの開始時に反映されるので、bind と同じ。
1214
+ * Go back to attachment_object as the render target (same entry point as the WebGL
1215
+ * context). In WebGPU a target switch only takes effect when a render pass begins,
1216
+ * so this is the same as bind.
1217
+ *
1218
+ * @param {IAttachmentObject} attachment_object
1219
+ * @return {void}
1220
+ */
1221
+ deferBind(attachment_object) {
1222
+ this.bind(attachment_object);
1223
+ }
1211
1224
  /**
1212
1225
  * @description アタッチメントオブジェクトをバインド
1213
1226
  * Bind an attachment object