@next2d/webgpu 3.15.0 → 3.16.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/src/Context.js CHANGED
@@ -164,193 +164,16 @@ export class Context {
164
164
  * @param {number} device_pixel_ratio - デバイスピクセル比 / Device pixel ratio
165
165
  */
166
166
  constructor(device, canvas_context, preferred_format, device_pixel_ratio = 1) {
167
- Object.defineProperty(this, "_nodeRoots", {
168
- enumerable: true,
169
- configurable: true,
170
- writable: true,
171
- value: new WeakMap()
172
- });
173
- /** @description 変換行列スタック / Transform matrix stack */
174
- Object.defineProperty(this, "$stack", {
175
- enumerable: true,
176
- configurable: true,
177
- writable: true,
178
- value: void 0
179
- });
180
- /** @description 現在の2D変換行列 / Current 2D transform matrix */
181
- Object.defineProperty(this, "$matrix", {
182
- enumerable: true,
183
- configurable: true,
184
- writable: true,
185
- value: void 0
186
- });
187
- /** @description 背景クリア色R / Background clear color R */
188
- Object.defineProperty(this, "$clearColorR", {
189
- enumerable: true,
190
- configurable: true,
191
- writable: true,
192
- value: void 0
193
- });
194
- /** @description 背景クリア色G / Background clear color G */
195
- Object.defineProperty(this, "$clearColorG", {
196
- enumerable: true,
197
- configurable: true,
198
- writable: true,
199
- value: void 0
200
- });
201
- /** @description 背景クリア色B / Background clear color B */
202
- Object.defineProperty(this, "$clearColorB", {
203
- enumerable: true,
204
- configurable: true,
205
- writable: true,
206
- value: void 0
207
- });
208
- /** @description 背景クリア色A / Background clear color A */
209
- Object.defineProperty(this, "$clearColorA", {
210
- enumerable: true,
211
- configurable: true,
212
- writable: true,
213
- value: void 0
214
- });
215
- /** @description メインアタッチメントオブジェクト / Main attachment object */
216
- Object.defineProperty(this, "$mainAttachmentObject", {
217
- enumerable: true,
218
- configurable: true,
219
- writable: true,
220
- value: void 0
221
- });
222
- /** @description アタッチメントオブジェクトのスタック / Attachment object stack */
223
- Object.defineProperty(this, "$stackAttachmentObject", {
224
- enumerable: true,
225
- configurable: true,
226
- writable: true,
227
- value: void 0
228
- });
229
- /** @description グローバルアルファ値 / Global alpha value */
230
- Object.defineProperty(this, "globalAlpha", {
231
- enumerable: true,
232
- configurable: true,
233
- writable: true,
234
- value: void 0
235
- });
236
- /** @description グローバル合成操作 / Global composite operation */
237
- Object.defineProperty(this, "globalCompositeOperation", {
238
- enumerable: true,
239
- configurable: true,
240
- writable: true,
241
- value: void 0
242
- });
243
- /** @description 画像スムージングの有効/無効 / Whether image smoothing is enabled */
244
- Object.defineProperty(this, "imageSmoothingEnabled", {
245
- enumerable: true,
246
- configurable: true,
247
- writable: true,
248
- value: void 0
249
- });
250
- /** @description 塗りつぶしスタイル / Fill style color */
251
- Object.defineProperty(this, "$fillStyle", {
252
- enumerable: true,
253
- configurable: true,
254
- writable: true,
255
- value: void 0
256
- });
257
- /** @description 線スタイル / Stroke style color */
258
- Object.defineProperty(this, "$strokeStyle", {
259
- enumerable: true,
260
- configurable: true,
261
- writable: true,
262
- value: void 0
263
- });
264
- /** @description マスク描画範囲 / Mask drawing bounds */
265
- Object.defineProperty(this, "maskBounds", {
266
- enumerable: true,
267
- configurable: true,
268
- writable: true,
269
- value: void 0
270
- });
271
- /** @description 線の太さ / Line thickness */
272
- Object.defineProperty(this, "thickness", {
273
- enumerable: true,
274
- configurable: true,
275
- writable: true,
276
- value: void 0
277
- });
278
- /** @description 線端の形状 / Line cap style */
279
- Object.defineProperty(this, "caps", {
280
- enumerable: true,
281
- configurable: true,
282
- writable: true,
283
- value: void 0
284
- });
285
- /** @description 線の結合スタイル / Line joint style */
286
- Object.defineProperty(this, "joints", {
287
- enumerable: true,
288
- configurable: true,
289
- writable: true,
290
- value: void 0
291
- });
292
- /** @description マイターリミット / Miter limit */
293
- Object.defineProperty(this, "miterLimit", {
294
- enumerable: true,
295
- configurable: true,
296
- writable: true,
297
- value: void 0
298
- });
299
- /** @description GPUデバイス / GPU device instance */
300
- Object.defineProperty(this, "device", {
301
- enumerable: true,
302
- configurable: true,
303
- writable: true,
304
- value: void 0
305
- });
306
- /** @description GPUキャンバスコンテキスト / GPU canvas context */
307
- Object.defineProperty(this, "canvasContext", {
308
- enumerable: true,
309
- configurable: true,
310
- writable: true,
311
- value: void 0
312
- });
313
- /** @description 優先テクスチャフォーマット / Preferred texture format */
314
- Object.defineProperty(this, "preferredFormat", {
315
- enumerable: true,
316
- configurable: true,
317
- writable: true,
318
- value: void 0
319
- });
167
+ this._nodeRoots = new WeakMap();
320
168
  /** @description コマンドエンコーダー / Command encoder */
321
- Object.defineProperty(this, "commandEncoder", {
322
- enumerable: true,
323
- configurable: true,
324
- writable: true,
325
- value: null
326
- });
169
+ this.commandEncoder = null;
327
170
  /** @description レンダーパスエンコーダー / Render pass encoder */
328
- Object.defineProperty(this, "renderPassEncoder", {
329
- enumerable: true,
330
- configurable: true,
331
- writable: true,
332
- value: null
333
- });
171
+ this.renderPassEncoder = null;
334
172
  /** @description 連続するキャッシュ出力だけで再利用するパスと出力先 / Pass owned by consecutive cached-filter output */
335
- Object.defineProperty(this, "cachedFilterPass", {
336
- enumerable: true,
337
- configurable: true,
338
- writable: true,
339
- value: null
340
- });
341
- Object.defineProperty(this, "cachedFilterPassColorView", {
342
- enumerable: true,
343
- configurable: true,
344
- writable: true,
345
- value: null
346
- });
173
+ this.cachedFilterPass = null;
174
+ this.cachedFilterPassColorView = null;
347
175
  /** @description このContextの固定UV・sampler・layoutだけを使う弱参照キャッシュ / Context-owned immutable identity bindings */
348
- Object.defineProperty(this, "cachedFilterBindGroups", {
349
- enumerable: true,
350
- configurable: true,
351
- writable: true,
352
- value: new WeakMap()
353
- });
176
+ this.cachedFilterBindGroups = new WeakMap();
354
177
  /**
355
178
  * @description 現在openなrenderPassEncoderがインスタンスバッチ用パスかどうか。
356
179
  * インスタンスパスは連続バッチ間で再利用されるが、fill/clip等の
@@ -359,228 +182,56 @@ export class Context {
359
182
  * batching. Such passes are reused across consecutive batches
360
183
  * but are incompatible with stencil-based fill/clip passes.
361
184
  */
362
- Object.defineProperty(this, "renderPassIsInstanced", {
363
- enumerable: true,
364
- configurable: true,
365
- writable: true,
366
- value: false
367
- });
185
+ this.renderPassIsInstanced = false;
368
186
  /** @description メインキャンバステクスチャ(最終表示用、フレームごとに1回取得) / Main canvas texture (for final display, acquired once per frame) */
369
- Object.defineProperty(this, "mainTexture", {
370
- enumerable: true,
371
- configurable: true,
372
- writable: true,
373
- value: null
374
- });
187
+ this.mainTexture = null;
375
188
  /** @description メインキャンバステクスチャビュー / Main canvas texture view */
376
- Object.defineProperty(this, "mainTextureView", {
377
- enumerable: true,
378
- configurable: true,
379
- writable: true,
380
- value: null
381
- });
189
+ this.mainTextureView = null;
382
190
  /** @description フレーム開始済みフラグ / Whether the frame has been started */
383
- Object.defineProperty(this, "frameStarted", {
384
- enumerable: true,
385
- configurable: true,
386
- writable: true,
387
- value: false
388
- });
191
+ this.frameStarted = false;
389
192
  /** @description フレームごとの一時テクスチャ(endFrame()でdestroy) / Per-frame temporary textures (destroyed in endFrame()) */
390
- Object.defineProperty(this, "frameTextures", {
391
- enumerable: true,
392
- configurable: true,
393
- writable: true,
394
- value: []
395
- });
193
+ this.frameTextures = [];
396
194
  /** @description フレームごとのプール管理テクスチャ(endFrame()でプールに返却) / Per-frame pooled textures (returned to pool in endFrame()) */
397
- Object.defineProperty(this, "pooledTextures", {
398
- enumerable: true,
399
- configurable: true,
400
- writable: true,
401
- value: []
402
- });
195
+ this.pooledTextures = [];
403
196
  /** @description フレームごとのレンダーテクスチャプール管理(endFrame()でプールに返却) / Per-frame render texture pool (returned to pool in endFrame()) */
404
- Object.defineProperty(this, "pooledRenderTextures", {
405
- enumerable: true,
406
- configurable: true,
407
- writable: true,
408
- value: []
409
- });
410
- Object.defineProperty(this, "externalImageUploadBatch", {
411
- enumerable: true,
412
- configurable: true,
413
- writable: true,
414
- value: null
415
- });
197
+ this.pooledRenderTextures = [];
198
+ this.externalImageUploadBatch = null;
416
199
  /** @description 現在のレンダーターゲット(メインまたはアトラス) / Current render target (could be main or atlas) */
417
- Object.defineProperty(this, "currentRenderTarget", {
418
- enumerable: true,
419
- configurable: true,
420
- writable: true,
421
- value: null
422
- });
200
+ this.currentRenderTarget = null;
423
201
  /** @description 現在のビューポート幅(アトラス描画時はアトラスサイズ) / Current viewport width (atlas size during atlas rendering) */
424
- Object.defineProperty(this, "viewportWidth", {
425
- enumerable: true,
426
- configurable: true,
427
- writable: true,
428
- value: 0
429
- });
202
+ this.viewportWidth = 0;
430
203
  /** @description 現在のビューポート高さ(アトラス描画時はアトラスサイズ) / Current viewport height (atlas size during atlas rendering) */
431
- Object.defineProperty(this, "viewportHeight", {
432
- enumerable: true,
433
- configurable: true,
434
- writable: true,
435
- value: 0
436
- });
437
- /** @description パスコマンド / Path command handler */
438
- Object.defineProperty(this, "pathCommand", {
439
- enumerable: true,
440
- configurable: true,
441
- writable: true,
442
- value: void 0
443
- });
444
- /** @description バッファマネージャー / Buffer manager */
445
- Object.defineProperty(this, "bufferManager", {
446
- enumerable: true,
447
- configurable: true,
448
- writable: true,
449
- value: void 0
450
- });
451
- /** @description テクスチャマネージャー / Texture manager */
452
- Object.defineProperty(this, "textureManager", {
453
- enumerable: true,
454
- configurable: true,
455
- writable: true,
456
- value: void 0
457
- });
458
- /** @description フレームバッファマネージャー / Frame buffer manager */
459
- Object.defineProperty(this, "frameBufferManager", {
460
- enumerable: true,
461
- configurable: true,
462
- writable: true,
463
- value: void 0
464
- });
465
- /** @description パイプラインマネージャー / Pipeline manager */
466
- Object.defineProperty(this, "pipelineManager", {
467
- enumerable: true,
468
- configurable: true,
469
- writable: true,
470
- value: void 0
471
- });
204
+ this.viewportHeight = 0;
472
205
  /** @description 新しい描画状態フラグ / New draw state flag */
473
- Object.defineProperty(this, "newDrawState", {
474
- enumerable: true,
475
- configurable: true,
476
- writable: true,
477
- value: false
478
- });
206
+ this.newDrawState = false;
479
207
  /** @description cacheAsBitmap用の保留中アトラスノードスタック / Pending atlas nodes stack for cacheAsBitmap */
480
- Object.defineProperty(this, "_pendingAtlasNodes", {
481
- enumerable: true,
482
- configurable: true,
483
- writable: true,
484
- value: []
485
- });
208
+ this._pendingAtlasNodes = [];
486
209
  /** @description コンテナレイヤースタック(フィルター/ブレンド用) / Container layer stack (for filter/blend) */
487
- Object.defineProperty(this, "$containerLayerStack", {
488
- enumerable: true,
489
- configurable: true,
490
- writable: true,
491
- value: []
492
- });
210
+ this.$containerLayerStack = [];
493
211
  /** @description コンテナレイヤーのコンテンツサイズ / Container layer content sizes */
494
- Object.defineProperty(this, "containerLayerContentSizes", {
495
- enumerable: true,
496
- configurable: true,
497
- writable: true,
498
- value: []
499
- });
212
+ this.containerLayerContentSizes = [];
500
213
  /** @description マスク描画モードフラグ(beginMask〜endMask間でtrue) / Mask drawing mode flag (true between beginMask and endMask) */
501
- Object.defineProperty(this, "inMaskMode", {
502
- enumerable: true,
503
- configurable: true,
504
- writable: true,
505
- value: false
506
- });
214
+ this.inMaskMode = false;
507
215
  /** @description ノード領域クリア済みフラグ(beginNodeRendering〜endNodeRendering間で使用) / Node area cleared flag (used between beginNodeRendering and endNodeRendering) */
508
- Object.defineProperty(this, "nodeAreaCleared", {
509
- enumerable: true,
510
- configurable: true,
511
- writable: true,
512
- value: false
513
- });
216
+ this.nodeAreaCleared = false;
514
217
  /** @description 現在のノードのシザー範囲(クリア後に戻すため) / Current node scissor rect (to restore after clearing) */
515
- Object.defineProperty(this, "currentNodeScissor", {
516
- enumerable: true,
517
- configurable: true,
518
- writable: true,
519
- value: null
520
- });
218
+ this.currentNodeScissor = null;
521
219
  /** @description アトラスレンダーパス統合: 同一アトラスへの連続描画でパスを再利用 / Atlas render pass integration: reuse pass for consecutive draws to the same atlas */
522
- Object.defineProperty(this, "nodeRenderPassAtlasIndex", {
523
- enumerable: true,
524
- configurable: true,
525
- writable: true,
526
- value: -1
527
- });
220
+ this.nodeRenderPassAtlasIndex = -1;
528
221
  /** @description Dynamic Uniform BindGroup(fill/stencilパイプライン共有、フレームごとに1回作成) / Dynamic Uniform BindGroup (shared by fill/stencil pipelines, created once per frame) */
529
- Object.defineProperty(this, "fillDynamicBindGroup", {
530
- enumerable: true,
531
- configurable: true,
532
- writable: true,
533
- value: null
534
- });
222
+ this.fillDynamicBindGroup = null;
535
223
  /** @description Dynamic Uniform BindGroupのバッファ / Dynamic Uniform BindGroup buffer */
536
- Object.defineProperty(this, "fillDynamicBindGroupBuffer", {
537
- enumerable: true,
538
- configurable: true,
539
- writable: true,
540
- value: null
541
- });
224
+ this.fillDynamicBindGroupBuffer = null;
542
225
  /** @description clearNodeArea() 用頂点バッファキャッシュ / Vertex buffer cache for clearNodeArea() */
543
- Object.defineProperty(this, "nodeClearQuadBuffer", {
544
- enumerable: true,
545
- configurable: true,
546
- writable: true,
547
- value: null
548
- });
226
+ this.nodeClearQuadBuffer = null;
549
227
  /** @description Storage Buffer + Indirect Drawing を使用するかどうか / Whether to use Storage Buffer + Indirect Drawing */
550
- Object.defineProperty(this, "useOptimizedInstancing", {
551
- enumerable: true,
552
- configurable: true,
553
- writable: true,
554
- value: true
555
- });
228
+ this.useOptimizedInstancing = true;
556
229
  /** @description リサイズ後にcanvasContextの再設定が必要かどうか / Whether canvasContext reconfiguration is needed after resize */
557
- Object.defineProperty(this, "$needsReconfigure", {
558
- enumerable: true,
559
- configurable: true,
560
- writable: true,
561
- value: false
562
- });
230
+ this.$needsReconfigure = false;
563
231
  /** @description Hot Path 用の事前割り当てバッファ / Pre-allocated buffer for hot path */
564
- Object.defineProperty(this, "$uniformData8", {
565
- enumerable: true,
566
- configurable: true,
567
- writable: true,
568
- value: new Float32Array(8)
569
- });
232
+ this.$uniformData8 = new Float32Array(8);
570
233
  /** @description Hot Path 用の事前割り当てシザーレクト / Pre-allocated scissor rect for hot path */
571
- Object.defineProperty(this, "$scissorRect", {
572
- enumerable: true,
573
- configurable: true,
574
- writable: true,
575
- value: { "x": 0, "y": 0, "w": 0, "h": 0 }
576
- });
577
- /** @description フィルター/コンテナレイヤー用のプリアロケートされた設定オブジェクト / Pre-allocated config object for filter/container layers */
578
- Object.defineProperty(this, "$filterConfig", {
579
- enumerable: true,
580
- configurable: true,
581
- writable: true,
582
- value: void 0
583
- });
234
+ this.$scissorRect = { "x": 0, "y": 0, "w": 0, "h": 0 };
584
235
  this.device = device;
585
236
  this.canvasContext = canvas_context;
586
237
  this.preferredFormat = preferred_format;
@@ -1022,7 +673,13 @@ export class Context {
1022
673
  * @return {void}
1023
674
  */
1024
675
  bezierCurveTo(cx1, cy1, cx2, cy2, x, y) {
1025
- this.pathCommand.bezierCurveTo(cx1, cy1, cx2, cy2, x, y);
676
+ // 曲線の座標 1 単位が画面上で何ピクセルになるか (描画行列の x 軸 / y 軸方向の拡大率の大きい方)。
677
+ // 2次ベジェ曲線で近似するときの本数を、画面上の誤差から決めるのに使う。
678
+ const matrix = this.$matrix;
679
+ // 曲線 1 本ごとに通るので、平方根は大きい方の 1 回だけ取る。
680
+ const scaleX = matrix[0] * matrix[0] + matrix[1] * matrix[1];
681
+ const scaleY = matrix[3] * matrix[3] + matrix[4] * matrix[4];
682
+ this.pathCommand.bezierCurveTo(cx1, cy1, cx2, cy2, x, y, Math.sqrt(scaleX > scaleY ? scaleX : scaleY));
1026
683
  }
1027
684
  /**
1028
685
  * @description 描画メソッド共通: レンダーパスの確保とノード領域クリア
@@ -6,66 +6,16 @@
6
6
  */
7
7
  export class ExternalImageUploadBatch {
8
8
  constructor(device) {
9
- Object.defineProperty(this, "device", {
10
- enumerable: true,
11
- configurable: true,
12
- writable: true,
13
- value: device
14
- });
15
- Object.defineProperty(this, "size", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: 1024
20
- });
21
- Object.defineProperty(this, "canvas", {
22
- enumerable: true,
23
- configurable: true,
24
- writable: true,
25
- value: null
26
- });
27
- Object.defineProperty(this, "context", {
28
- enumerable: true,
29
- configurable: true,
30
- writable: true,
31
- value: null
32
- });
33
- Object.defineProperty(this, "texture", {
34
- enumerable: true,
35
- configurable: true,
36
- writable: true,
37
- value: null
38
- });
39
- Object.defineProperty(this, "copies", {
40
- enumerable: true,
41
- configurable: true,
42
- writable: true,
43
- value: []
44
- });
45
- Object.defineProperty(this, "x", {
46
- enumerable: true,
47
- configurable: true,
48
- writable: true,
49
- value: 0
50
- });
51
- Object.defineProperty(this, "y", {
52
- enumerable: true,
53
- configurable: true,
54
- writable: true,
55
- value: 0
56
- });
57
- Object.defineProperty(this, "rowHeight", {
58
- enumerable: true,
59
- configurable: true,
60
- writable: true,
61
- value: 0
62
- });
63
- Object.defineProperty(this, "usedWidth", {
64
- enumerable: true,
65
- configurable: true,
66
- writable: true,
67
- value: 0
68
- });
9
+ this.device = device;
10
+ this.size = 1024;
11
+ this.canvas = null;
12
+ this.context = null;
13
+ this.texture = null;
14
+ this.copies = [];
15
+ this.x = 0;
16
+ this.y = 0;
17
+ this.rowHeight = 0;
18
+ this.usedWidth = 0;
69
19
  }
70
20
  /** Copies the source synchronously, so the caller may immediately reuse it. */
71
21
  append(source, destination, width, height) {
@@ -16,48 +16,7 @@ export class FrameBufferManager {
16
16
  * @param {GPUTextureFormat} format - テクスチャフォーマット / Texture format
17
17
  */
18
18
  constructor(device, format) {
19
- Object.defineProperty(this, "device", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: void 0
24
- });
25
- Object.defineProperty(this, "format", {
26
- enumerable: true,
27
- configurable: true,
28
- writable: true,
29
- value: void 0
30
- });
31
- Object.defineProperty(this, "attachments", {
32
- enumerable: true,
33
- configurable: true,
34
- writable: true,
35
- value: void 0
36
- });
37
- Object.defineProperty(this, "currentAttachment", {
38
- enumerable: true,
39
- configurable: true,
40
- writable: true,
41
- value: void 0
42
- });
43
- Object.defineProperty(this, "idCounter", {
44
- enumerable: true,
45
- configurable: true,
46
- writable: true,
47
- value: void 0
48
- });
49
- Object.defineProperty(this, "texturePool", {
50
- enumerable: true,
51
- configurable: true,
52
- writable: true,
53
- value: void 0
54
- });
55
- Object.defineProperty(this, "pendingReleases", {
56
- enumerable: true,
57
- configurable: true,
58
- writable: true,
59
- value: []
60
- });
19
+ this.pendingReleases = [];
61
20
  this.device = device;
62
21
  this.format = format;
63
22
  this.attachments = new Map();
@@ -19,6 +19,18 @@ export declare const getAdaptiveResolution: (stops_length: number) => number;
19
19
  * 注意: R, G, B, A は 0-255 範囲
20
20
  * LUTは0-1の範囲の色を生成し、spread処理はシェーダー側で行う
21
21
  *
22
+ * 新しいグラデーションが初めて出るたびに (キャッシュに無いたびに) 256〜1024 画素ぶん
23
+ * 走るので、1 画素ごとにオブジェクトを作らず、ストップの検索もやり直さない。
24
+ * 位置 t は画素とともに増えるので、「t 以上の位置を持つ最初のストップ」は後ろへしか
25
+ * 動かない。区間が変わったときだけ、その区間の両端の色を用意する。
26
+ * 結果は、画素ごとにストップを先頭から検索する方法と同じ。
27
+ *
28
+ * This runs over 256 to 1024 texels every time a gradient misses the cache, so it
29
+ * allocates nothing per texel and never restarts the stop search: t grows with the
30
+ * texel index, so the first stop at or after t only moves forward, and the end colors
31
+ * of a segment are prepared only when the segment changes. The result equals searching
32
+ * the stops from the start for every texel.
33
+ *
22
34
  * @param {number[]} stops - グラデーションストップ配列 / Gradient stop array
23
35
  * @param {number} _spread - スプレッドメソッド(未使用、シェーダー側で処理)/ Spread method (unused, handled by shader)
24
36
  * @param {number} interpolation - 補間方法 (0: linearRGB, 1: RGB) / Interpolation method (WebGL compatible)
@@ -32,6 +44,11 @@ export declare const generateGradientLUT: (stops: number[], _spread: number, int
32
44
  * Generate gradient LUT texture data for filters.
33
45
  * ratios, colors, alphas配列から1D LUTを生成
34
46
  *
47
+ * 1 画素ごと、1 ストップごとのオブジェクトは作らない。区間が変わったときだけ、
48
+ * その区間の両端の色を用意する。
49
+ * No object is allocated per texel or per stop; the end colors of a segment are
50
+ * prepared only when the segment changes.
51
+ *
35
52
  * @param {Float32Array} ratios - 比率配列 (0-255) / Ratio array (0-255)
36
53
  * @param {Float32Array} colors - 色配列 (32bit整数) / Color array (32-bit integers)
37
54
  * @param {Float32Array} alphas - アルファ配列 (0-1) / Alpha array (0-1)