|
1 | 1 | // NOTE: This is a barrel file, internal files should not import things from this file |
2 | 2 |
|
3 | | -export { |
4 | | - /** @deprecated This feature is now stable, use tgpu.const. */ |
5 | | - constant as const, |
6 | | -} from './core/constant/tgpuConstant.ts'; |
7 | 3 | export { declare } from './core/declare/tgpuDeclare.ts'; |
8 | | -export { |
9 | | - /** @deprecated This feature is now stable, use tgpu.comptime. */ |
10 | | - comptime, |
11 | | -} from './core/function/comptime.ts'; |
12 | | -export { |
13 | | - /** @deprecated This feature is now stable, use tgpu.computeFn. */ |
14 | | - computeFn, |
15 | | -} from './core/function/tgpuComputeFn.ts'; |
16 | | -export { |
17 | | - /** @deprecated This feature is now stable, use tgpu.fn. */ |
18 | | - fn, |
19 | | -} from './core/function/tgpuFn.ts'; |
20 | | -export { |
21 | | - /** @deprecated This feature is now stable, use tgpu.fragmentFn. */ |
22 | | - fragmentFn, |
23 | | -} from './core/function/tgpuFragmentFn.ts'; |
24 | | -export { |
25 | | - /** @deprecated This feature is now stable, use tgpu.vertexFn. */ |
26 | | - vertexFn, |
27 | | -} from './core/function/tgpuVertexFn.ts'; |
28 | 4 | export { rawCodeSnippet } from './core/rawCodeSnippet/tgpuRawCodeSnippet.ts'; |
29 | 5 | export { namespace } from './core/resolve/namespace.ts'; |
30 | 6 | export { simulate } from './core/simulate/tgpuSimulate.ts'; |
| 7 | + |
| 8 | +// DEPRECATED |
| 9 | + |
| 10 | +import { constant } from './core/constant/tgpuConstant.ts'; |
| 11 | +import { comptime } from './core/function/comptime.ts'; |
| 12 | +import { computeFn } from './core/function/tgpuComputeFn.ts'; |
| 13 | +import { fn } from './core/function/tgpuFn.ts'; |
| 14 | +import { fragmentFn } from './core/function/tgpuFragmentFn.ts'; |
| 15 | +import { vertexFn } from './core/function/tgpuVertexFn.ts'; |
| 16 | +import { accessor, mutableAccessor } from './core/slot/accessor.ts'; |
| 17 | +import { lazy } from './core/slot/lazy.ts'; |
| 18 | +import { slot } from './core/slot/slot.ts'; |
| 19 | +import { privateVar, workgroupVar } from './core/variable/tgpuVariable.ts'; |
| 20 | +import { vertexLayout } from './core/vertexLayout/vertexLayout.ts'; |
| 21 | + |
| 22 | +/** @deprecated This feature is now stable, use tgpu.const. */ |
| 23 | +const _constant = constant; |
| 24 | +/** @deprecated This feature is now stable, use tgpu.comptime. */ |
| 25 | +const _comptime = comptime; |
| 26 | +/** @deprecated This feature is now stable, use tgpu.computeFn. */ |
| 27 | +const _computeFn = computeFn; |
| 28 | +/** @deprecated This feature is now stable, use tgpu.fn. */ |
| 29 | +const _fn = fn; |
| 30 | +/** @deprecated This feature is now stable, use tgpu.fragmentFn. */ |
| 31 | +const _fragmentFn = fragmentFn; |
| 32 | +/** @deprecated This feature is now stable, use tgpu.vertexFn. */ |
| 33 | +const _vertexFn = vertexFn; |
| 34 | +/** @deprecated This feature is now stable, use tgpu.accessor. */ |
| 35 | +const _accessor = accessor; |
| 36 | +/** @deprecated This feature is now stable, use tgpu.mutableAccessor. */ |
| 37 | +const _mutableAccessor = mutableAccessor; |
| 38 | +/** @deprecated This feature is now stable, use tgpu.lazy. */ |
| 39 | +const _lazy = lazy; |
| 40 | +/** @deprecated This feature is now stable, use tgpu.slot. */ |
| 41 | +const _slot = slot; |
| 42 | +/** @deprecated This feature is now stable, use tgpu.privateVar. */ |
| 43 | +const _privateVar = privateVar; |
| 44 | +/** @deprecated This feature is now stable, use tgpu.workgroupVar. */ |
| 45 | +const _workgroupVar = workgroupVar; |
| 46 | +/** @deprecated This feature is now stable, use tgpu.vertexLayout. */ |
| 47 | +const _vertexLayout = vertexLayout; |
| 48 | + |
31 | 49 | export { |
32 | | - /** @deprecated This feature is now stable, use tgpu.accessor. */ |
33 | | - accessor, |
34 | | - /** @deprecated This feature is now stable, use tgpu.mutableAccessor. */ |
35 | | - mutableAccessor, |
36 | | -} from './core/slot/accessor.ts'; |
37 | | -export { |
38 | | - /** @deprecated This feature is now stable, use tgpu.lazy. */ |
39 | | - lazy as derived, |
40 | | -} from './core/slot/lazy.ts'; |
41 | | -export { |
42 | | - /** @deprecated This feature is now stable, use tgpu.slot. */ |
43 | | - slot, |
44 | | -} from './core/slot/slot.ts'; |
45 | | -export { |
46 | | - /** @deprecated This feature is now stable, use tgpu.privateVar. */ |
47 | | - privateVar, |
48 | | - /** @deprecated This feature is now stable, use tgpu.workgroupVar. */ |
49 | | - workgroupVar, |
50 | | -} from './core/variable/tgpuVariable.ts'; |
51 | | -export { |
52 | | - /** @deprecated This feature is now stable, use tgpu.vertexLayout. */ |
53 | | - vertexLayout, |
54 | | -} from './core/vertexLayout/vertexLayout.ts'; |
| 50 | + _accessor as accessor, |
| 51 | + _comptime as comptime, |
| 52 | + _computeFn as computeFn, |
| 53 | + _constant as const, |
| 54 | + _fn as fn, |
| 55 | + _fragmentFn as fragmentFn, |
| 56 | + _lazy as derived, |
| 57 | + _mutableAccessor as mutableAccessor, |
| 58 | + _privateVar as privateVar, |
| 59 | + _slot as slot, |
| 60 | + _vertexFn as vertexFn, |
| 61 | + _vertexLayout as vertexLayout, |
| 62 | + _workgroupVar as workgroupVar, |
| 63 | +}; |
0 commit comments