Skip to content

refactor(docs): Migrate more examples to use tsover#2199

Merged
iwoplaza merged 1 commit intoreleasefrom
refactor/more-tsover-migrations
Feb 27, 2026
Merged

refactor(docs): Migrate more examples to use tsover#2199
iwoplaza merged 1 commit intoreleasefrom
refactor/more-tsover-migrations

Conversation

@iwoplaza
Copy link
Collaborator

No description provided.

@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch from c46139e to 5134d4d Compare February 20, 2026 15:30
@github-actions
Copy link

github-actions bot commented Feb 20, 2026

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@6dec65e14db4575429074b11897ec9d9302e6dda
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@6dec65e14db4575429074b11897ec9d9302e6dda
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@6dec65e14db4575429074b11897ec9d9302e6dda

benchmark
view benchmark

commit
view commit

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

📊 Bundle Size Comparison

🟢 Decreased ➖ Unchanged 🔴 Increased ❔ Unknown
0 345 0 0

👀 Notable results

Static test results:

No major changes.

Dynamic test results:

No major changes.

📋 All results

Click to reveal the results table (344 entries).
Test tsdown
dataImportEverything.ts 82.25 kB (➖)
dataImportOneDirect.ts 22.03 kB (➖)
dataImportOneStar.ts 22.03 kB (➖)
functionWithUseGpu.ts 282 B (➖)
functionWithoutUseGpu.ts 24 B (➖)
importEntireLibrary.ts 260.10 kB (➖)
stdImportEverything.ts 96.06 kB (➖)
stdImportOneDirect.ts 44.01 kB (➖)
stdImportOneStar.ts 44.01 kB (➖)
tgpuImportEverything.ts 238.38 kB (➖)
tgpuImportOne.ts 238.39 kB (➖)
MissingBindGroupsError from typegpu.ts 1.29 kB (➖)
MissingLinksError from typegpu.ts 208 B (➖)
MissingSlotValueError from typegpu.ts 153 B (➖)
MissingVertexBuffersError from typegpu.ts 1.29 kB (➖)
NotUniformError from typegpu.ts 1.25 kB (➖)
ResolutionError from typegpu.ts 1.48 kB (➖)
Void from typegpudata.ts 676 B (➖)
abs from typegpustd.ts 61.32 kB (➖)
acos from typegpustd.ts 61.32 kB (➖)
acosh from typegpustd.ts 61.32 kB (➖)
add from typegpustd.ts 44.01 kB (➖)
align from typegpudata.ts 23.70 kB (➖)
alignmentOf from typegpudata.ts 19.26 kB (➖)
allEq from typegpustd.ts 46.54 kB (➖)
all from typegpustd.ts 46.54 kB (➖)
and from typegpustd.ts 46.53 kB (➖)
any from typegpustd.ts 46.54 kB (➖)
arrayLength from typegpustd.ts 12.13 kB (➖)
arrayOf from typegpudata.ts 23.91 kB (➖)
asin from typegpustd.ts 61.32 kB (➖)
asinh from typegpustd.ts 61.32 kB (➖)
atan2 from typegpustd.ts 61.32 kB (➖)
atan from typegpustd.ts 61.32 kB (➖)
atanh from typegpustd.ts 61.32 kB (➖)
atomicAdd from typegpustd.ts 13.51 kB (➖)
atomicAnd from typegpustd.ts 13.51 kB (➖)
atomicLoad from typegpustd.ts 13.50 kB (➖)
atomicMax from typegpustd.ts 13.51 kB (➖)
atomicMin from typegpustd.ts 13.51 kB (➖)
atomicOr from typegpustd.ts 13.51 kB (➖)
atomicStore from typegpustd.ts 13.50 kB (➖)
atomicSub from typegpustd.ts 13.51 kB (➖)
atomicXor from typegpustd.ts 13.51 kB (➖)
atomic from typegpudata.ts 715 B (➖)
bitcastU32toF32 from typegpustd.ts 41.40 kB (➖)
bitcastU32toI32 from typegpustd.ts 41.41 kB (➖)
bool from typegpudata.ts 10.70 kB (➖)
builtin from typegpudata.ts 26.26 kB (➖)
ceil from typegpustd.ts 61.32 kB (➖)
clamp from typegpustd.ts 61.32 kB (➖)
common from typegpu.ts 36.24 kB (➖)
comparisonSampler from typegpudata.ts 695 B (➖)
cos from typegpustd.ts 61.32 kB (➖)
cosh from typegpustd.ts 61.32 kB (➖)
countLeadingZeros from typegpustd.ts 61.32 kB (➖)
countOneBits from typegpustd.ts 61.32 kB (➖)
countTrailingZeros from typegpustd.ts 61.32 kB (➖)
cross from typegpustd.ts 61.32 kB (➖)
d from typegpu.ts 82.23 kB (➖)
deepEqual from typegpudata.ts 2.72 kB (➖)
degrees from typegpustd.ts 61.32 kB (➖)
determinant from typegpustd.ts 61.32 kB (➖)
disarrayOf from typegpudata.ts 12.65 kB (➖)
discard from typegpustd.ts 11.89 kB (➖)
distance from typegpustd.ts 61.32 kB (➖)
div from typegpustd.ts 44.01 kB (➖)
dot4I8Packed from typegpustd.ts 61.32 kB (➖)
dot4U8Packed from typegpustd.ts 61.32 kB (➖)
dot from typegpustd.ts 61.31 kB (➖)
dpdxCoarse from typegpustd.ts 12.75 kB (➖)
dpdxFine from typegpustd.ts 12.75 kB (➖)
dpdx from typegpustd.ts 12.74 kB (➖)
dpdyCoarse from typegpustd.ts 12.75 kB (➖)
dpdyFine from typegpustd.ts 12.75 kB (➖)
dpdy from typegpustd.ts 12.75 kB (➖)
eq from typegpustd.ts 46.54 kB (➖)
exp2 from typegpustd.ts 61.32 kB (➖)
exp from typegpustd.ts 61.32 kB (➖)
extensionEnabled from typegpustd.ts 12.21 kB (➖)
extractBits from typegpustd.ts 61.32 kB (➖)
f16 from typegpudata.ts 10.70 kB (➖)
f32 from typegpudata.ts 10.70 kB (➖)
faceForward from typegpustd.ts 61.32 kB (➖)
firstLeadingBit from typegpustd.ts 61.32 kB (➖)
firstTrailingBit from typegpustd.ts 61.32 kB (➖)
float16 from typegpudata.ts 18.22 kB (➖)
float16x2 from typegpudata.ts 18.22 kB (➖)
float16x4 from typegpudata.ts 18.22 kB (➖)
float32 from typegpudata.ts 18.22 kB (➖)
float32x2 from typegpudata.ts 18.22 kB (➖)
float32x3 from typegpudata.ts 18.22 kB (➖)
float32x4 from typegpudata.ts 18.22 kB (➖)
floor from typegpustd.ts 61.32 kB (➖)
fma from typegpustd.ts 61.32 kB (➖)
formatToWGSLType from typegpudata.ts 18.21 kB (➖)
fract from typegpustd.ts 61.32 kB (➖)
frexp from typegpustd.ts 61.32 kB (➖)
fwidthCoarse from typegpustd.ts 12.75 kB (➖)
fwidthFine from typegpustd.ts 12.75 kB (➖)
fwidth from typegpustd.ts 12.75 kB (➖)
ge from typegpustd.ts 46.54 kB (➖)
getLongestContiguousPrefix from typegpudata.ts 22.05 kB (➖)
gt from typegpustd.ts 46.54 kB (➖)
i32 from typegpudata.ts 10.70 kB (➖)
identity2 from typegpustd.ts 24.64 kB (➖)
identity3 from typegpustd.ts 24.64 kB (➖)
identity4 from typegpustd.ts 24.64 kB (➖)
insertBits from typegpustd.ts 61.32 kB (➖)
interpolate from typegpudata.ts 23.71 kB (➖)
invariant from typegpudata.ts 24.08 kB (➖)
inverseSqrt from typegpustd.ts 61.32 kB (➖)
isAccessor from typegpu.ts 72 B (➖)
isAlignAttrib from typegpudata.ts 697 B (➖)
isAtomic from typegpudata.ts 697 B (➖)
isBufferShorthand from typegpu.ts 1.70 kB (➖)
isBuffer from typegpu.ts 86.33 kB (➖)
isBuiltinAttrib from typegpudata.ts 699 B (➖)
isBuiltin from typegpudata.ts 21.98 kB (➖)
isCloseTo from typegpustd.ts 46.54 kB (➖)
isComparisonSampler from typegpu.ts 57.76 kB (➖)
isContiguous from typegpudata.ts 22.04 kB (➖)
isData from typegpudata.ts 2.33 kB (➖)
isDecorated from typegpudata.ts 700 B (➖)
isDisarray from typegpudata.ts 1.63 kB (➖)
isInterpolateAttrib from typegpudata.ts 703 B (➖)
isLazy from typegpu.ts 68 B (➖)
isLocationAttrib from typegpudata.ts 700 B (➖)
isLooseData from typegpudata.ts 1.68 kB (➖)
isLooseDecorated from typegpudata.ts 1.64 kB (➖)
isMutableAccessor from typegpu.ts 80 B (➖)
isPackedData from typegpudata.ts 18.28 kB (➖)
isPtr from typegpudata.ts 694 B (➖)
isSampler from typegpu.ts 57.75 kB (➖)
isSizeAttrib from typegpudata.ts 696 B (➖)
isSlot from typegpu.ts 68 B (➖)
isTexture from typegpu.ts 57.75 kB (➖)
isTgpuComputeFn from typegpu.ts 76 B (➖)
isTgpuFn from typegpu.ts 707 B (➖)
isTgpuFragmentFn from typegpu.ts 77 B (➖)
isTgpuVertexFn from typegpu.ts 75 B (➖)
isUnstruct from typegpudata.ts 1.63 kB (➖)
isUsableAsRender from typegpu.ts 62 B (➖)
isUsableAsSampled from typegpu.ts 63 B (➖)
isUsableAsStorage from typegpu.ts 63 B (➖)
isUsableAsUniform from typegpu.ts 57.74 kB (➖)
isUsableAsVertex from typegpu.ts 86.32 kB (➖)
isVariable from typegpu.ts 59.54 kB (➖)
isWgslArray from typegpudata.ts 696 B (➖)
isWgslData from typegpudata.ts 1.25 kB (➖)
isWgslStruct from typegpudata.ts 697 B (➖)
ldexp from typegpustd.ts 61.32 kB (➖)
le from typegpustd.ts 46.54 kB (➖)
length from typegpustd.ts 61.31 kB (➖)
location from typegpudata.ts 23.71 kB (➖)
log2 from typegpustd.ts 61.32 kB (➖)
log from typegpustd.ts 61.32 kB (➖)
lt from typegpustd.ts 46.54 kB (➖)
mat2x2f from typegpudata.ts 24.63 kB (➖)
mat3x3f from typegpudata.ts 24.63 kB (➖)
mat4x4f from typegpudata.ts 24.63 kB (➖)
matToArray from typegpudata.ts 24.77 kB (➖)
max from typegpustd.ts 61.32 kB (➖)
memoryLayoutOf from typegpudata.ts 39.24 kB (➖)
min from typegpustd.ts 61.32 kB (➖)
mix from typegpustd.ts 61.32 kB (➖)
mod from typegpustd.ts 44.01 kB (➖)
modf from typegpustd.ts 61.32 kB (➖)
mul from typegpustd.ts 44.01 kB (➖)
ne from typegpustd.ts 46.54 kB (➖)
neg from typegpustd.ts 44.01 kB (➖)
normalize from typegpustd.ts 61.32 kB (➖)
not from typegpustd.ts 46.53 kB (➖)
or from typegpustd.ts 46.53 kB (➖)
pack2x16float from typegpustd.ts 33.24 kB (➖)
pack4x8unorm from typegpustd.ts 33.24 kB (➖)
packedFormats from typegpudata.ts 18.24 kB (➖)
pow from typegpustd.ts 61.32 kB (➖)
ptrFn from typegpudata.ts 801 B (➖)
ptrHandle from typegpudata.ts 793 B (➖)
ptrPrivate from typegpudata.ts 800 B (➖)
ptrStorage from typegpudata.ts 798 B (➖)
ptrUniform from typegpudata.ts 794 B (➖)
ptrWorkgroup from typegpudata.ts 802 B (➖)
quantizeToF16 from typegpustd.ts 61.32 kB (➖)
radians from typegpustd.ts 61.32 kB (➖)
ref from typegpudata.ts 4.10 kB (➖)
reflect from typegpustd.ts 61.32 kB (➖)
refract from typegpustd.ts 61.32 kB (➖)
reverseBits from typegpustd.ts 61.32 kB (➖)
rotateX4 from typegpustd.ts 44.77 kB (➖)
rotateY4 from typegpustd.ts 44.77 kB (➖)
rotateZ4 from typegpustd.ts 44.77 kB (➖)
rotationX4 from typegpustd.ts 24.64 kB (➖)
rotationY4 from typegpustd.ts 24.64 kB (➖)
rotationZ4 from typegpustd.ts 24.64 kB (➖)
round from typegpustd.ts 61.32 kB (➖)
sampler from typegpudata.ts 684 B (➖)
saturate from typegpustd.ts 61.32 kB (➖)
scale4 from typegpustd.ts 44.77 kB (➖)
scaling4 from typegpustd.ts 24.64 kB (➖)
select from typegpustd.ts 46.54 kB (➖)
sign from typegpustd.ts 61.32 kB (➖)
sin from typegpustd.ts 61.32 kB (➖)
sinh from typegpustd.ts 61.32 kB (➖)
sint16 from typegpudata.ts 18.22 kB (➖)
sint16x2 from typegpudata.ts 18.22 kB (➖)
sint16x4 from typegpudata.ts 18.22 kB (➖)
sint32 from typegpudata.ts 18.22 kB (➖)
sint32x2 from typegpudata.ts 18.22 kB (➖)
sint32x3 from typegpudata.ts 18.22 kB (➖)
sint32x4 from typegpudata.ts 18.22 kB (➖)
sint8 from typegpudata.ts 18.22 kB (➖)
sint8x2 from typegpudata.ts 18.22 kB (➖)
sint8x4 from typegpudata.ts 18.22 kB (➖)
sizeOf from typegpudata.ts 22.03 kB (➖)
size from typegpudata.ts 23.70 kB (➖)
smoothstep from typegpustd.ts 61.32 kB (➖)
snorm16 from typegpudata.ts 18.22 kB (➖)
snorm16x2 from typegpudata.ts 18.22 kB (➖)
snorm16x4 from typegpudata.ts 18.22 kB (➖)
snorm8 from typegpudata.ts 18.22 kB (➖)
snorm8x2 from typegpudata.ts 18.22 kB (➖)
snorm8x4 from typegpudata.ts 18.22 kB (➖)
sqrt from typegpustd.ts 61.32 kB (➖)
std from typegpu.ts 96.06 kB (➖)
step from typegpustd.ts 61.32 kB (➖)
storageBarrier from typegpustd.ts 13.51 kB (➖)
struct from typegpudata.ts 3.32 kB (➖)
sub from typegpustd.ts 44.01 kB (➖)
subgroupAdd from typegpustd.ts 21.30 kB (➖)
subgroupAll from typegpustd.ts 21.30 kB (➖)
subgroupAnd from typegpustd.ts 21.30 kB (➖)
subgroupAny from typegpustd.ts 21.30 kB (➖)
subgroupBallot from typegpustd.ts 21.30 kB (➖)
subgroupBroadcastFirst from typegpustd.ts 21.30 kB (➖)
subgroupBroadcast from typegpustd.ts 21.30 kB (➖)
subgroupElect from typegpustd.ts 21.30 kB (➖)
subgroupExclusiveAdd from typegpustd.ts 21.30 kB (➖)
subgroupExclusiveMul from typegpustd.ts 21.30 kB (➖)
subgroupInclusiveAdd from typegpustd.ts 21.30 kB (➖)
subgroupInclusiveMul from typegpustd.ts 21.30 kB (➖)
subgroupMax from typegpustd.ts 21.30 kB (➖)
subgroupMin from typegpustd.ts 21.30 kB (➖)
subgroupMul from typegpustd.ts 21.30 kB (➖)
subgroupOr from typegpustd.ts 21.30 kB (➖)
subgroupShuffleDown from typegpustd.ts 21.30 kB (➖)
subgroupShuffleUp from typegpustd.ts 21.30 kB (➖)
subgroupShuffleXor from typegpustd.ts 21.30 kB (➖)
subgroupShuffle from typegpustd.ts 21.30 kB (➖)
subgroupXor from typegpustd.ts 21.30 kB (➖)
tan from typegpustd.ts 61.32 kB (➖)
tanh from typegpustd.ts 61.32 kB (➖)
texture1d from typegpudata.ts 11.15 kB (➖)
texture2dArray from typegpudata.ts 11.17 kB (➖)
texture2d from typegpudata.ts 11.15 kB (➖)
texture3d from typegpudata.ts 11.15 kB (➖)
textureBarrier from typegpustd.ts 13.50 kB (➖)
textureCubeArray from typegpudata.ts 11.17 kB (➖)
textureCube from typegpudata.ts 11.16 kB (➖)
textureDepth2dArray from typegpudata.ts 11.16 kB (➖)
textureDepth2d from typegpudata.ts 11.14 kB (➖)
textureDepthCubeArray from typegpudata.ts 11.16 kB (➖)
textureDepthCube from typegpudata.ts 11.14 kB (➖)
textureDepthMultisampled2d from typegpudata.ts 11.16 kB (➖)
textureDimensions from typegpustd.ts 22.68 kB (➖)
textureExternal from typegpudata.ts 815 B (➖)
textureGather from typegpustd.ts 22.68 kB (➖)
textureLoad from typegpustd.ts 22.69 kB (➖)
textureMultisampled2d from typegpudata.ts 11.17 kB (➖)
textureSampleBaseClampToEdge from typegpustd.ts 22.69 kB (➖)
textureSampleBias from typegpustd.ts 22.69 kB (➖)
textureSampleCompareLevel from typegpustd.ts 22.69 kB (➖)
textureSampleCompare from typegpustd.ts 22.69 kB (➖)
textureSampleLevel from typegpustd.ts 22.69 kB (➖)
textureSample from typegpustd.ts 22.69 kB (➖)
textureStorage1d from typegpudata.ts 979 B (➖)
textureStorage2dArray from typegpudata.ts 997 B (➖)
textureStorage2d from typegpudata.ts 979 B (➖)
textureStorage3d from typegpudata.ts 979 B (➖)
textureStore from typegpustd.ts 22.69 kB (➖)
tgpu.accessor from typegpu.ts 59.50 kB (➖)
tgpu.bindGroupLayout from typegpu.ts 66.64 kB (➖)
tgpu.comptime from typegpu.ts 11.99 kB (➖)
tgpu.computeFn from typegpu.ts 33.01 kB (➖)
tgpu.const from typegpu.ts 58.61 kB (➖)
tgpu.fn from typegpu.ts 33.66 kB (➖)
tgpu.fragmentFn from typegpu.ts 33.17 kB (➖)
tgpu.initFromDevice from typegpu.ts 229.67 kB (➖)
tgpu.init from typegpu.ts 230.18 kB (➖)
tgpu.lazy from typegpu.ts 1.16 kB (➖)
tgpu.mutableAccessor from typegpu.ts 59.51 kB (➖)
tgpu.privateVar from typegpu.ts 59.54 kB (➖)
tgpu.resolveWithContext from typegpu.ts 172.59 kB (➖)
tgpu.resolve from typegpu.ts 172.65 kB (➖)
tgpu.slot from typegpu.ts 1.59 kB (➖)
tgpu.unroll from typegpu.ts 2.53 kB (➖)
tgpu.vertexFn from typegpu.ts 33.14 kB (➖)
tgpu.vertexLayout from typegpu.ts 24.04 kB (➖)
tgpu.workgroupVar from typegpu.ts 59.54 kB (➖)
tgpu from typegpu.ts 238.39 kB (➖)
translate4 from typegpustd.ts 44.77 kB (➖)
translation4 from typegpustd.ts 24.64 kB (➖)
transpose from typegpustd.ts 61.32 kB (➖)
trunc from typegpustd.ts 61.32 kB (➖)
u16 from typegpudata.ts 10.72 kB (➖)
u32 from typegpudata.ts 10.70 kB (➖)
uint16 from typegpudata.ts 18.22 kB (➖)
uint16x2 from typegpudata.ts 18.22 kB (➖)
uint16x4 from typegpudata.ts 18.22 kB (➖)
uint32 from typegpudata.ts 18.22 kB (➖)
uint32x2 from typegpudata.ts 18.22 kB (➖)
uint32x3 from typegpudata.ts 18.22 kB (➖)
uint32x4 from typegpudata.ts 18.22 kB (➖)
uint8 from typegpudata.ts 18.21 kB (➖)
uint8x2 from typegpudata.ts 18.22 kB (➖)
uint8x4 from typegpudata.ts 18.22 kB (➖)
unorm10 10 10 2 from typegpudata.ts 18.22 kB (➖)
unorm16 from typegpudata.ts 18.22 kB (➖)
unorm16x2 from typegpudata.ts 18.22 kB (➖)
unorm16x4 from typegpudata.ts 18.22 kB (➖)
unorm8 from typegpudata.ts 18.22 kB (➖)
unorm8x2 from typegpudata.ts 18.22 kB (➖)
unorm8x4 bgra from typegpudata.ts 18.22 kB (➖)
unorm8x4 from typegpudata.ts 18.22 kB (➖)
unpack2x16float from typegpustd.ts 33.24 kB (➖)
unpack4x8unorm from typegpustd.ts 33.24 kB (➖)
unstruct from typegpudata.ts 1.59 kB (➖)
vec2b from typegpudata.ts 16.73 kB (➖)
vec2f from typegpudata.ts 16.73 kB (➖)
vec2h from typegpudata.ts 16.73 kB (➖)
vec2i from typegpudata.ts 16.73 kB (➖)
vec2u from typegpudata.ts 16.73 kB (➖)
vec3b from typegpudata.ts 16.73 kB (➖)
vec3f from typegpudata.ts 16.73 kB (➖)
vec3h from typegpudata.ts 16.73 kB (➖)
vec3i from typegpudata.ts 16.73 kB (➖)
vec3u from typegpudata.ts 16.73 kB (➖)
vec4b from typegpudata.ts 16.73 kB (➖)
vec4f from typegpudata.ts 16.73 kB (➖)
vec4h from typegpudata.ts 16.73 kB (➖)
vec4i from typegpudata.ts 16.73 kB (➖)
vec4u from typegpudata.ts 16.73 kB (➖)
workgroupBarrier from typegpustd.ts 13.51 kB (➖)

If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.

@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch 7 times, most recently from faf1e0b to 8593374 Compare February 21, 2026 10:41
@iwoplaza iwoplaza changed the base branch from main to feat/tsover February 21, 2026 10:44
@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch 7 times, most recently from 23f494f to 9a21708 Compare February 23, 2026 12:15
@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch from 9a21708 to 90069d5 Compare February 23, 2026 12:25
@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch from 90069d5 to 3dbe69b Compare February 23, 2026 16:31
Base automatically changed from feat/tsover to main February 24, 2026 09:51
@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch 5 times, most recently from 450ad02 to b097b77 Compare February 25, 2026 11:40
@iwoplaza iwoplaza changed the base branch from main to release February 25, 2026 11:40
@iwoplaza iwoplaza changed the title refactor: More tsover migrations refactor(docs): Migrate more examples to use tsover Feb 25, 2026
@iwoplaza iwoplaza marked this pull request as ready for review February 25, 2026 11:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates TypeGPU docs/examples and corresponding snapshot tests to use the newer “tsover” operator-style syntax (e.g., +, *, +=) and related helpers (e.g., std.saturate) instead of the more verbose functional forms (std.add, .mul(), std.clamp(...), etc.). It aligns the docs site examples and the “examples/individual” snapshot expectations with the refactored output.

Changes:

  • Refactor many example shaders (docs + Three.js/TSL integrations) to operator-style expressions and add 'use gpu' directives where needed.
  • Update snapshot tests under packages/typegpu/tests/examples/individual/* to match the updated generated WGSL.
  • Update TypeGPU-Three documentation code blocks to reflect the new style.

Reviewed changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/typegpu/tests/examples/individual/vaporrave.test.ts Snapshot update for operator-style math and minor simplifications.
packages/typegpu/tests/examples/individual/stable-fluid.test.ts Snapshot update for reordered arithmetic / scalar-vector ops.
packages/typegpu/tests/examples/individual/slime-mold.test.ts Snapshot update (compound assignments, saturate, scalar-vector ops).
packages/typegpu/tests/examples/individual/slime-mold-3d.test.ts Snapshot update (scalar-vector ops, compound assignments).
packages/typegpu/tests/examples/individual/ripple-cube.test.ts Snapshot update (operator-style PBR math, compound assignments).
packages/typegpu/tests/examples/individual/gravity.test.ts Snapshot update (compound assignments / simplified return).
packages/typegpu/tests/examples/individual/clouds.test.ts Snapshot update (saturate, operator-style arithmetic, renamed fragment I/O).
packages/typegpu/tests/examples/individual/caustics.test.ts Snapshot update (operator-style math simplifications).
packages/typegpu/tests/examples/individual/boids.test.ts Snapshot update for operator-style math and domain wrap logic.
packages/typegpu/tests/examples/individual/ascii-filter.test.ts Snapshot update (operate on color.rgb directly).
packages/typegpu/tests/examples/individual/3d-fish.test.ts Snapshot update (compound assignment).
apps/typegpu-docs/src/examples/threejs/simple/index.ts Migrate to operator-style TSL expressions.
apps/typegpu-docs/src/examples/threejs/compute-particles/index.ts Migrate to operator-style compute + material nodes.
apps/typegpu-docs/src/examples/threejs/compute-particles-snow/index.ts Migrate to operator-style math and simplify some expressions.
apps/typegpu-docs/src/examples/threejs/compute-particles-snow/entities.ts Operator-style refactor for opacity node logic.
apps/typegpu-docs/src/examples/threejs/compute-geometry/index.ts Operator-style refactor for pointer interaction and physics.
apps/typegpu-docs/src/examples/threejs/compute-cloth/verlet.ts Operator-style refactor in verlet compute passes.
apps/typegpu-docs/src/examples/threejs/compute-cloth/triNoise.ts Operator-style refactor inside noise loop.
apps/typegpu-docs/src/examples/threejs/compute-cloth/index.ts Operator-style refactor for checker pattern.
apps/typegpu-docs/src/examples/threejs/attractors/index.ts Operator-style refactor for init/update compute logic.
apps/typegpu-docs/src/examples/tests/uniformity/index.ts Operator-style refactor + 'use gpu' directive added.
apps/typegpu-docs/src/examples/simulation/stable-fluid/simulation.ts Refactor math to operators and introduce a GPU helper (getNeighbors) in TS form.
apps/typegpu-docs/src/examples/simulation/stable-fluid/render.ts Operator-style refactor in fragment shader.
apps/typegpu-docs/src/examples/simulation/slime-mold/index.ts Operator-style refactor (agent update + blur).
apps/typegpu-docs/src/examples/simulation/slime-mold-3d/index.ts Operator-style refactor (sense/update/blur/raymarch math).
apps/typegpu-docs/src/examples/simulation/gravity/render.ts Operator-style refactor across vertex/fragment shaders.
apps/typegpu-docs/src/examples/simulation/gravity/compute.ts Operator-style refactor for collision + gravity compute passes.
apps/typegpu-docs/src/examples/simulation/boids/index.ts Operator-style refactor + domain wrap logic expressed with fract.
apps/typegpu-docs/src/examples/simple/vaporrave/sphere.ts Operator-style refactor + 'use gpu' directive.
apps/typegpu-docs/src/examples/simple/vaporrave/index.ts Convert rayMarch to TS GPU function + operator-style refactor.
apps/typegpu-docs/src/examples/simple/vaporrave/floor.ts Operator-style refactor + 'use gpu' directives in helpers.
apps/typegpu-docs/src/examples/simple/stencil/index.ts Operator-style refactor for vertex transform.
apps/typegpu-docs/src/examples/simple/ripple-cube/sdf-scene.ts Operator-style refactor for SDF normal sampling.
apps/typegpu-docs/src/examples/simple/ripple-cube/post-processing.ts Operator-style refactor and some pipeline reshaping for post passes.
apps/typegpu-docs/src/examples/simple/ripple-cube/pbr.ts Operator-style refactor for PBR helpers/shading.
apps/typegpu-docs/src/examples/rendering/clouds/utils.ts Operator-style refactor + convert one helper to TS GPU function form.
apps/typegpu-docs/src/examples/rendering/clouds/index.ts Inline fragment shader using operator-style syntax.
apps/typegpu-docs/src/examples/rendering/caustics/index.ts Operator-style refactor across helper functions and fragment shader.
apps/typegpu-docs/src/examples/rendering/3d-fish/compute.ts Operator-style refactor in compute step.
apps/typegpu-docs/src/examples/image-processing/background-segmentation/shaders.ts Operator-style refactor in compute kernel indexing/accumulation.
apps/typegpu-docs/src/examples/image-processing/ascii-filter/index.ts Operator-style refactor in glyph math and color mode.
apps/typegpu-docs/src/content/docs/ecosystem/typegpu-three/index.mdx Update docs snippets to “tsover” style.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@aleksanderkatan aleksanderkatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! ⌛

@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch 2 times, most recently from a58a399 to cf3d2e8 Compare February 27, 2026 21:26
@iwoplaza iwoplaza force-pushed the refactor/more-tsover-migrations branch from cf3d2e8 to 6dec65e Compare February 27, 2026 21:29
@iwoplaza iwoplaza merged commit 28bd37f into release Feb 27, 2026
4 checks passed
@iwoplaza iwoplaza deleted the refactor/more-tsover-migrations branch February 27, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants