@gasm-compiler/core 0.6.0 → 0.7.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/README.md CHANGED
@@ -185,11 +185,17 @@ import { compile } from "@gasm-compiler/core";
185
185
 
186
186
  const wgslCode = compile(wasmBytes, {
187
187
  workgroupSize: [128, 1, 1], // Default: [64, 1, 1]
188
- debug: true, // Emit source-mapping comments
188
+ minify: true, // Optimize and emit compact, single-line WGSL
189
189
  mathExtension: true, // Enable gasm:math built-ins
190
190
  });
191
191
  ```
192
192
 
193
+ `minify: true` enables optimization, shortens internal identifiers and
194
+ literals, removes comments and formatting, and emits a single-line shader.
195
+ Exported entry-point names and metadata-visible resource names are preserved.
196
+ Minification cannot be combined with `optimize: false`, source mapping, or
197
+ compiler metadata.
198
+
193
199
  ### Math Extension
194
200
 
195
201
  Enable direct mapping of WebAssembly imports to WGSL built-in math functions:
package/dist/browser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CompileDiagnostics, G as GasmMetadata, a as GasmBinding, P as PreparedModule, b as CompileOptions, c as PrepareModuleOptions } from './error_codes-5zCZDwFZ.js';
2
- export { d as CompileError, h as DEFAULT_SPEC_VERSION, e as DemotionPolicy, f as Diagnostic, g as DiagnosticRecovery, o as ErrorCode, E as ErrorCodes, u as GasmMetadataEntryPoint, M as MutableGlobalsInit, x as PrepareMode, j as SPEC_VERSION_V01, k as SPEC_VERSION_V02, S as SpecVersion, w as buildBindingTable, s as buildGasmMetadata, l as isCompileError, n as isParseError, i as isV02Mode, m as parseWasmModule, p as prepareModule, r as resolveSpecVersion, v as validateGasmMetadataSchema } from './error_codes-5zCZDwFZ.js';
1
+ import { C as CompileDiagnostics, G as GasmMetadata, a as GasmBinding, P as PreparedModule, b as CompileOptions, c as PrepareModuleOptions } from './error_codes-xePrg-T0.js';
2
+ export { d as CompileError, h as DEFAULT_SPEC_VERSION, e as DemotionPolicy, f as Diagnostic, g as DiagnosticRecovery, o as ErrorCode, E as ErrorCodes, u as GasmMetadataEntryPoint, M as MutableGlobalsInit, x as PrepareMode, j as SPEC_VERSION_V01, k as SPEC_VERSION_V02, S as SpecVersion, w as buildBindingTable, s as buildGasmMetadata, l as isCompileError, n as isParseError, i as isV02Mode, m as parseWasmModule, p as prepareModule, r as resolveSpecVersion, v as validateGasmMetadataSchema } from './error_codes-xePrg-T0.js';
3
3
  export { BrowserGPUExecutor } from './browser-executor.js';
4
4
  export { BufferData, ExecuteOptions, ExecutionError, ExecutorConfig, IGPUExecutor, OutputBufferSpec, isExecutionError } from './executor.js';
5
5