@mediapipe/tasks-text 1.0.1-rc.20260811 → 1.0.1-rc.20260813

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": "@mediapipe/tasks-text",
3
- "version": "1.0.1-rc.20260811",
3
+ "version": "1.0.1-rc.20260813",
4
4
  "description": "MediaPipe Text Tasks. See the privacy notice at https://goo.gle/mediapipe-privacy.",
5
5
  "main": "text_bundle.cjs",
6
6
  "browser": "text_bundle.mjs",
@@ -5152,6 +5152,28 @@ var WebGPU = {
5152
5152
  HEAP32[(((infoStruct) + (40)) >> 2)] = adapterType;
5153
5153
  HEAPU32[(((infoStruct) + (44)) >> 2)] = 0;
5154
5154
  HEAPU32[(((infoStruct) + (48)) >> 2)] = 0;
5155
+ WebGPU.iterateExtensions(infoStruct, {
5156
+ 327739: ext => {
5157
+ let configCount = 0;
5158
+ let configsPtr = 0;
5159
+ if (info.subgroupMatrixConfigs) {
5160
+ configCount = info.subgroupMatrixConfigs.length;
5161
+ configsPtr = _malloc(configCount * 20);
5162
+ for (const [i, cfg] of info.subgroupMatrixConfigs.entries()) {
5163
+ const ptr = configsPtr + i * 20;
5164
+ const componentType = WebGPU.SubgroupMatrixComponentType.indexOf(cfg.componentType);
5165
+ const resultComponentType = WebGPU.SubgroupMatrixComponentType.indexOf(cfg.resultComponentType);
5166
+ HEAP32[((ptr) >> 2)] = componentType;
5167
+ HEAP32[(((ptr) + (4)) >> 2)] = resultComponentType;
5168
+ HEAPU32[(((ptr) + (8)) >> 2)] = cfg.M;
5169
+ HEAPU32[(((ptr) + (12)) >> 2)] = cfg.N;
5170
+ HEAPU32[(((ptr) + (16)) >> 2)] = cfg.K;
5171
+ }
5172
+ }
5173
+ HEAPU32[(((ext) + (12)) >> 2)] = configsPtr;
5174
+ HEAPU32[(((ext) + (8)) >> 2)] = configCount;
5175
+ }
5176
+ });
5155
5177
  },
5156
5178
  AddressMode: [ , "clamp-to-edge", "repeat", "mirror-repeat" ],
5157
5179
  BlendFactor: [ , "zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha" ],
@@ -5190,7 +5212,8 @@ var WebGPU = {
5190
5212
  22: "texture-component-swizzle",
5191
5213
  23: "subgroup-size-control",
5192
5214
  327692: "chromium-experimental-unorm16-texture-formats",
5193
- 327729: "chromium-experimental-multi-draw-indirect"
5215
+ 327729: "chromium-experimental-multi-draw-indirect",
5216
+ 327732: "chromium-experimental-subgroup-matrix"
5194
5217
  },
5195
5218
  FilterMode: [ , "nearest", "linear" ],
5196
5219
  FrontFace: [ , "ccw", "cw" ],
@@ -5208,6 +5231,7 @@ var WebGPU = {
5208
5231
  StencilOperation: [ , "keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap" ],
5209
5232
  StorageTextureAccess: [ , , "write-only", "read-only", "read-write" ],
5210
5233
  StoreOp: [ , "store", "discard" ],
5234
+ SubgroupMatrixComponentType: [ , "f32", "f16", "u32", "i32", "u8", "i8" ],
5211
5235
  SurfaceGetCurrentTextureStatus: [ , "success-optimal", "success-suboptimal", "timeout", "outdated", "lost", "error" ],
5212
5236
  TextureAspect: [ , "all", "stencil-only", "depth-only" ],
5213
5237
  TextureDimension: [ , "1d", "2d", "3d" ],
@@ -6401,7 +6425,7 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
6401
6425
  // End JS library exports
6402
6426
  // end include: postlibrary.js
6403
6427
  var ASM_CONSTS = {
6404
- 752360: () => {
6428
+ 752776: () => {
6405
6429
  specialHTMLTargets["#canvas"] = Module.canvas;
6406
6430
  }
6407
6431
  };
Binary file
@@ -5155,6 +5155,28 @@ var WebGPU = {
5155
5155
  HEAP32[(((infoStruct) + (40)) >> 2)] = adapterType;
5156
5156
  HEAPU32[(((infoStruct) + (44)) >> 2)] = 0;
5157
5157
  HEAPU32[(((infoStruct) + (48)) >> 2)] = 0;
5158
+ WebGPU.iterateExtensions(infoStruct, {
5159
+ 327739: ext => {
5160
+ let configCount = 0;
5161
+ let configsPtr = 0;
5162
+ if (info.subgroupMatrixConfigs) {
5163
+ configCount = info.subgroupMatrixConfigs.length;
5164
+ configsPtr = _malloc(configCount * 20);
5165
+ for (const [i, cfg] of info.subgroupMatrixConfigs.entries()) {
5166
+ const ptr = configsPtr + i * 20;
5167
+ const componentType = WebGPU.SubgroupMatrixComponentType.indexOf(cfg.componentType);
5168
+ const resultComponentType = WebGPU.SubgroupMatrixComponentType.indexOf(cfg.resultComponentType);
5169
+ HEAP32[((ptr) >> 2)] = componentType;
5170
+ HEAP32[(((ptr) + (4)) >> 2)] = resultComponentType;
5171
+ HEAPU32[(((ptr) + (8)) >> 2)] = cfg.M;
5172
+ HEAPU32[(((ptr) + (12)) >> 2)] = cfg.N;
5173
+ HEAPU32[(((ptr) + (16)) >> 2)] = cfg.K;
5174
+ }
5175
+ }
5176
+ HEAPU32[(((ext) + (12)) >> 2)] = configsPtr;
5177
+ HEAPU32[(((ext) + (8)) >> 2)] = configCount;
5178
+ }
5179
+ });
5158
5180
  },
5159
5181
  AddressMode: [ , "clamp-to-edge", "repeat", "mirror-repeat" ],
5160
5182
  BlendFactor: [ , "zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha" ],
@@ -5193,7 +5215,8 @@ var WebGPU = {
5193
5215
  22: "texture-component-swizzle",
5194
5216
  23: "subgroup-size-control",
5195
5217
  327692: "chromium-experimental-unorm16-texture-formats",
5196
- 327729: "chromium-experimental-multi-draw-indirect"
5218
+ 327729: "chromium-experimental-multi-draw-indirect",
5219
+ 327732: "chromium-experimental-subgroup-matrix"
5197
5220
  },
5198
5221
  FilterMode: [ , "nearest", "linear" ],
5199
5222
  FrontFace: [ , "ccw", "cw" ],
@@ -5211,6 +5234,7 @@ var WebGPU = {
5211
5234
  StencilOperation: [ , "keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap" ],
5212
5235
  StorageTextureAccess: [ , , "write-only", "read-only", "read-write" ],
5213
5236
  StoreOp: [ , "store", "discard" ],
5237
+ SubgroupMatrixComponentType: [ , "f32", "f16", "u32", "i32", "u8", "i8" ],
5214
5238
  SurfaceGetCurrentTextureStatus: [ , "success-optimal", "success-suboptimal", "timeout", "outdated", "lost", "error" ],
5215
5239
  TextureAspect: [ , "all", "stencil-only", "depth-only" ],
5216
5240
  TextureDimension: [ , "1d", "2d", "3d" ],
@@ -6404,7 +6428,7 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
6404
6428
  // End JS library exports
6405
6429
  // end include: postlibrary.js
6406
6430
  var ASM_CONSTS = {
6407
- 752360: () => {
6431
+ 752776: () => {
6408
6432
  specialHTMLTargets["#canvas"] = Module.canvas;
6409
6433
  }
6410
6434
  };
Binary file
@@ -5152,6 +5152,28 @@ var WebGPU = {
5152
5152
  HEAP32[(((infoStruct) + (40)) >> 2)] = adapterType;
5153
5153
  HEAPU32[(((infoStruct) + (44)) >> 2)] = 0;
5154
5154
  HEAPU32[(((infoStruct) + (48)) >> 2)] = 0;
5155
+ WebGPU.iterateExtensions(infoStruct, {
5156
+ 327739: ext => {
5157
+ let configCount = 0;
5158
+ let configsPtr = 0;
5159
+ if (info.subgroupMatrixConfigs) {
5160
+ configCount = info.subgroupMatrixConfigs.length;
5161
+ configsPtr = _malloc(configCount * 20);
5162
+ for (const [i, cfg] of info.subgroupMatrixConfigs.entries()) {
5163
+ const ptr = configsPtr + i * 20;
5164
+ const componentType = WebGPU.SubgroupMatrixComponentType.indexOf(cfg.componentType);
5165
+ const resultComponentType = WebGPU.SubgroupMatrixComponentType.indexOf(cfg.resultComponentType);
5166
+ HEAP32[((ptr) >> 2)] = componentType;
5167
+ HEAP32[(((ptr) + (4)) >> 2)] = resultComponentType;
5168
+ HEAPU32[(((ptr) + (8)) >> 2)] = cfg.M;
5169
+ HEAPU32[(((ptr) + (12)) >> 2)] = cfg.N;
5170
+ HEAPU32[(((ptr) + (16)) >> 2)] = cfg.K;
5171
+ }
5172
+ }
5173
+ HEAPU32[(((ext) + (12)) >> 2)] = configsPtr;
5174
+ HEAPU32[(((ext) + (8)) >> 2)] = configCount;
5175
+ }
5176
+ });
5155
5177
  },
5156
5178
  AddressMode: [ , "clamp-to-edge", "repeat", "mirror-repeat" ],
5157
5179
  BlendFactor: [ , "zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha" ],
@@ -5190,7 +5212,8 @@ var WebGPU = {
5190
5212
  22: "texture-component-swizzle",
5191
5213
  23: "subgroup-size-control",
5192
5214
  327692: "chromium-experimental-unorm16-texture-formats",
5193
- 327729: "chromium-experimental-multi-draw-indirect"
5215
+ 327729: "chromium-experimental-multi-draw-indirect",
5216
+ 327732: "chromium-experimental-subgroup-matrix"
5194
5217
  },
5195
5218
  FilterMode: [ , "nearest", "linear" ],
5196
5219
  FrontFace: [ , "ccw", "cw" ],
@@ -5208,6 +5231,7 @@ var WebGPU = {
5208
5231
  StencilOperation: [ , "keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap" ],
5209
5232
  StorageTextureAccess: [ , , "write-only", "read-only", "read-write" ],
5210
5233
  StoreOp: [ , "store", "discard" ],
5234
+ SubgroupMatrixComponentType: [ , "f32", "f16", "u32", "i32", "u8", "i8" ],
5211
5235
  SurfaceGetCurrentTextureStatus: [ , "success-optimal", "success-suboptimal", "timeout", "outdated", "lost", "error" ],
5212
5236
  TextureAspect: [ , "all", "stencil-only", "depth-only" ],
5213
5237
  TextureDimension: [ , "1d", "2d", "3d" ],
@@ -6401,7 +6425,7 @@ Module["FS_createLazyFile"] = FS_createLazyFile;
6401
6425
  // End JS library exports
6402
6426
  // end include: postlibrary.js
6403
6427
  var ASM_CONSTS = {
6404
- 752234: () => {
6428
+ 752650: () => {
6405
6429
  specialHTMLTargets["#canvas"] = Module.canvas;
6406
6430
  }
6407
6431
  };
Binary file