Skip to content

Commit f68fb2a

Browse files
committed
Move fft package to sort
1 parent 77cdc72 commit f68fb2a

22 files changed

Lines changed: 25 additions & 108 deletions

File tree

apps/typegpu-docs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@stackblitz/sdk": "^1.11.0",
3030
"@tailwindcss/vite": "^4.1.18",
3131
"@typegpu/color": "workspace:*",
32-
"@typegpu/fft": "workspace:*",
3332
"@typegpu/geometry": "workspace:*",
3433
"@typegpu/noise": "workspace:*",
3534
"@typegpu/sdf": "workspace:*",

apps/typegpu-docs/src/examples/exampleContent.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ const API_RULES: { id: string; pattern: RegExp }[] = [
151151
{ id: '@typegpu/noise', pattern: /@typegpu\/noise/ },
152152
{ id: '@typegpu/sdf', pattern: /@typegpu\/sdf/ },
153153
{ id: '@typegpu/color', pattern: /@typegpu\/color/ },
154-
{ id: '@typegpu/fft', pattern: /@typegpu\/fft/ },
154+
{
155+
id: 'fft',
156+
pattern:
157+
/createFft2d|createStockhamRadix4LineStrategy|createStockhamRadix2LineStrategy|type\s+Fft2d\b/,
158+
},
155159
{ id: 'wgpu-matrix', pattern: /wgpu-matrix/ },
156160
];
157161

apps/typegpu-docs/src/examples/image-processing/camera-fft/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
createStockhamRadix2LineStrategy,
55
createStockhamRadix4LineStrategy,
66
type Fft2d,
7-
} from '@typegpu/fft';
7+
} from '@typegpu/sort';
88
import tgpu, { common, d, std } from 'typegpu';
99
import { defineControls } from '../../common/defineControls.ts';
1010

apps/typegpu-docs/src/examples/tests/fft-line-strategy-check/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Validates @typegpu/fft line strategies: GPU↔CPU (fft.js separable 2D), radix-4 vs radix-2 Stockham,
2+
* Validates @typegpu/sort FFT line strategies: GPU↔CPU (fft.js separable 2D), radix-4 vs radix-2 Stockham,
33
* and forward→inverse round-trip (WebGPU).
44
*
55
* Run in the docs dev server: `/TypeGPU/examples#example=tests--fft-line-strategy-check` — needs WebGPU.
@@ -9,7 +9,7 @@ import {
99
createStockhamRadix2LineStrategy,
1010
createStockhamRadix4LineStrategy,
1111
type Fft2d,
12-
} from '@typegpu/fft';
12+
} from '@typegpu/sort';
1313
import tgpu, { d } from 'typegpu';
1414
import FFT from 'fft.js';
1515

apps/typegpu-docs/src/utils/examples/sandboxModules.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,4 @@ export const SANDBOX_MODULES: Record<string, SandboxModuleDefinition> = {
144144
import: { reroute: 'typegpu-sort/src/index.ts' },
145145
typeDef: { reroute: 'typegpu-sort/src/index.ts' },
146146
},
147-
'@typegpu/fft': {
148-
import: { reroute: 'typegpu-fft/src/index.ts' },
149-
typeDef: { reroute: 'typegpu-fft/src/index.ts' },
150-
},
151147
};

packages/typegpu-fft/build.config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/typegpu-fft/package.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

packages/typegpu-fft/tsconfig.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/typegpu-sort/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@typegpu/sort",
33
"version": "0.10.0",
4-
"description": "GPU sorting and scanning algorithms implemented using TypeGPU.",
4+
"description": "GPU sorting, scanning, and FFT algorithms implemented using TypeGPU.",
55
"keywords": [],
66
"license": "MIT",
77
"type": "module",
@@ -27,6 +27,7 @@
2727
},
2828
"scripts": {
2929
"build": "unbuild",
30+
"test": "vitest run",
3031
"test:types": "pnpm tsc --p ./tsconfig.json --noEmit",
3132
"prepublishOnly": "tgpu-dev-cli prepack"
3233
},
@@ -36,7 +37,8 @@
3637
"typegpu": "workspace:*",
3738
"typescript": "catalog:types",
3839
"unbuild": "catalog:build",
39-
"unplugin-typegpu": "workspace:*"
40+
"unplugin-typegpu": "workspace:*",
41+
"vitest": "catalog:test"
4042
},
4143
"peerDependencies": {
4244
"typegpu": "^0.10.2"

0 commit comments

Comments
 (0)