@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 +7 -1
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +1 -1
- package/dist/{chunk-7JF6MVMW.js → chunk-63X76LAZ.js} +9 -9
- package/dist/compiler.d.ts +1 -0
- package/dist/compiler.js +1 -1
- package/dist/{error_codes-5zCZDwFZ.d.ts → error_codes-xePrg-T0.d.ts} +6 -0
- package/dist/gasm_core_rs.wasm +0 -0
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
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-
|
|
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-
|
|
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
|
|