Skip to content

fix: Choose f32 when trying to find a type common with abstractFloat and i32 (or u32)#2396

Open
iwoplaza wants to merge 3 commits intomainfrom
fix/choose-absfloat-over-i32-in-conversion
Open

fix: Choose f32 when trying to find a type common with abstractFloat and i32 (or u32)#2396
iwoplaza wants to merge 3 commits intomainfrom
fix/choose-absfloat-over-i32-in-conversion

Conversation

@iwoplaza
Copy link
Copy Markdown
Collaborator

@iwoplaza iwoplaza commented Apr 20, 2026

Blocked by #2388

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

pkg.pr.new

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

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

benchmark
view benchmark

commit
view commit

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

📊 Bundle Size Comparison

🟢 Decreased ➖ Unchanged 🔴 Increased ❔ Unknown
0 57 294 0

👀 Notable results

Static test results:

Test tsdown
dataImportOneDirect.ts 22.50 kB ($${\color{red}+0.8\%}$$)
dataImportOneStar.ts 22.50 kB ($${\color{red}+0.8\%}$$)

Dynamic test results:

‼️ Click to reveal the results table (163 entries).
Test tsdown
extensionEnabled from typegpustd.ts 12.32 kB ($${\color{red}+1.5\%}$$)
range from typegpustd.ts 12.59 kB ($${\color{red}+1.4\%}$$)
bool from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
f16 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
f32 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
i32 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
u32 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
u16 from typegpudata.ts 10.80 kB ($${\color{red}+1.4\%}$$)
disarrayOf from typegpudata.ts 12.76 kB ($${\color{red}+1.4\%}$$)
textureDepth2d from typegpudata.ts 11.22 kB ($${\color{red}+1.4\%}$$)
arrayLength from typegpustd.ts 12.23 kB ($${\color{red}+1.4\%}$$)
textureDepthCube from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
texture1d from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
texture2d from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
texture3d from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
textureCube from typegpudata.ts 11.24 kB ($${\color{red}+1.4\%}$$)
textureDepth2dArray from typegpudata.ts 11.24 kB ($${\color{red}+1.4\%}$$)
textureDepthCubeArray from typegpudata.ts 11.25 kB ($${\color{red}+1.4\%}$$)
textureDepthMultisampled2d from typegpudata.ts 11.25 kB ($${\color{red}+1.4\%}$$)
texture2dArray from typegpudata.ts 11.25 kB ($${\color{red}+1.4\%}$$)
textureCubeArray from typegpudata.ts 11.26 kB ($${\color{red}+1.4\%}$$)
textureMultisampled2d from typegpudata.ts 11.26 kB ($${\color{red}+1.4\%}$$)
discard from typegpustd.ts 11.98 kB ($${\color{red}+1.3\%}$$)
dpdx from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdxCoarse from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdxFine from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdyCoarse from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdyFine from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdy from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
fwidthCoarse from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
fwidthFine from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
fwidth from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
atomicLoad from typegpustd.ts 13.58 kB ($${\color{red}+1.1\%}$$)
atomicStore from typegpustd.ts 13.59 kB ($${\color{red}+1.1\%}$$)
textureBarrier from typegpustd.ts 13.59 kB ($${\color{red}+1.1\%}$$)
atomicAdd from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicAnd from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicMax from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicMin from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicOr from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicSub from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicXor from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
storageBarrier from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
workgroupBarrier from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
vec2b from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2f from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2h from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2i from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2u from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3b from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3f from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3h from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3i from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3u from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4b from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4f from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4h from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4i from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4u from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
formatToWGSLType from typegpudata.ts 18.68 kB ($${\color{red}+1.0\%}$$)
uint8 from typegpudata.ts 18.68 kB ($${\color{red}+1.0\%}$$)
float16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32x3 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32x3 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint8 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm8 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32x3 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm10 10 10 2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8x4 bgra from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
packedFormats from typegpudata.ts 18.71 kB ($${\color{red}+1.0\%}$$)
isPackedData from typegpudata.ts 18.75 kB ($${\color{red}+1.0\%}$$)
alignmentOf from typegpudata.ts 19.73 kB ($${\color{red}+0.9\%}$$)
subgroupAdd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupAll from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupAnd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupAny from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupBallot from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupBroadcastFirst from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupBroadcast from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupElect from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupExclusiveAdd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupExclusiveMul from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupInclusiveAdd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupInclusiveMul from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupMax from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupMin from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupMul from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupOr from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffleDown from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffleUp from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffleXor from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffle from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupXor from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
isBuiltin from typegpudata.ts 22.45 kB ($${\color{red}+0.8\%}$$)
sizeOf from typegpudata.ts 22.50 kB ($${\color{red}+0.8\%}$$)
isContiguous from typegpudata.ts 22.51 kB ($${\color{red}+0.8\%}$$)
getLongestContiguousPrefix from typegpudata.ts 22.52 kB ($${\color{red}+0.8\%}$$)
textureDimensions from typegpustd.ts 23.51 kB ($${\color{red}+0.8\%}$$)
textureGather from typegpustd.ts 23.51 kB ($${\color{red}+0.8\%}$$)
textureLoad from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleBaseClampToEdge from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleBias from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleCompareLevel from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleCompare from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleGrad from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleLevel from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSample from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureStore from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
arrayOf from typegpudata.ts 24.00 kB ($${\color{red}+0.8\%}$$)
size from typegpudata.ts 24.19 kB ($${\color{red}+0.7\%}$$)
align from typegpudata.ts 24.19 kB ($${\color{red}+0.7\%}$$)
location from typegpudata.ts 24.19 kB ($${\color{red}+0.7\%}$$)
interpolate from typegpudata.ts 24.20 kB ($${\color{red}+0.7\%}$$)
invariant from typegpudata.ts 24.57 kB ($${\color{red}+0.7\%}$$)
mat4x4f from typegpudata.ts 24.71 kB ($${\color{red}+0.7\%}$$)
identity2 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
identity3 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
identity4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
mat2x2f from typegpudata.ts 24.71 kB ($${\color{red}+0.7\%}$$)
mat3x3f from typegpudata.ts 24.71 kB ($${\color{red}+0.7\%}$$)
rotationX4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
rotationY4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
rotationZ4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
scaling4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
translation4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
matToArray from typegpudata.ts 24.84 kB ($${\color{red}+0.7\%}$$)
builtin from typegpudata.ts 26.37 kB ($${\color{red}+0.7\%}$$)
pack2x16float from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
pack4x8unorm from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
unpack2x16float from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
unpack4x8unorm from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)

📋 All results

Click to reveal the results table (350 entries).
Test tsdown
extensionEnabled from typegpustd.ts 12.32 kB ($${\color{red}+1.5\%}$$)
range from typegpustd.ts 12.59 kB ($${\color{red}+1.4\%}$$)
bool from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
f16 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
f32 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
i32 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
u32 from typegpudata.ts 10.78 kB ($${\color{red}+1.4\%}$$)
u16 from typegpudata.ts 10.80 kB ($${\color{red}+1.4\%}$$)
disarrayOf from typegpudata.ts 12.76 kB ($${\color{red}+1.4\%}$$)
textureDepth2d from typegpudata.ts 11.22 kB ($${\color{red}+1.4\%}$$)
arrayLength from typegpustd.ts 12.23 kB ($${\color{red}+1.4\%}$$)
textureDepthCube from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
texture1d from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
texture2d from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
texture3d from typegpudata.ts 11.23 kB ($${\color{red}+1.4\%}$$)
textureCube from typegpudata.ts 11.24 kB ($${\color{red}+1.4\%}$$)
textureDepth2dArray from typegpudata.ts 11.24 kB ($${\color{red}+1.4\%}$$)
textureDepthCubeArray from typegpudata.ts 11.25 kB ($${\color{red}+1.4\%}$$)
textureDepthMultisampled2d from typegpudata.ts 11.25 kB ($${\color{red}+1.4\%}$$)
texture2dArray from typegpudata.ts 11.25 kB ($${\color{red}+1.4\%}$$)
textureCubeArray from typegpudata.ts 11.26 kB ($${\color{red}+1.4\%}$$)
textureMultisampled2d from typegpudata.ts 11.26 kB ($${\color{red}+1.4\%}$$)
discard from typegpustd.ts 11.98 kB ($${\color{red}+1.3\%}$$)
dpdx from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdxCoarse from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdxFine from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdyCoarse from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdyFine from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
dpdy from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
fwidthCoarse from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
fwidthFine from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
fwidth from typegpustd.ts 12.83 kB ($${\color{red}+1.2\%}$$)
atomicLoad from typegpustd.ts 13.58 kB ($${\color{red}+1.1\%}$$)
atomicStore from typegpustd.ts 13.59 kB ($${\color{red}+1.1\%}$$)
textureBarrier from typegpustd.ts 13.59 kB ($${\color{red}+1.1\%}$$)
atomicAdd from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicAnd from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicMax from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicMin from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicOr from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicSub from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
atomicXor from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
storageBarrier from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
workgroupBarrier from typegpustd.ts 13.60 kB ($${\color{red}+1.1\%}$$)
vec2b from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2f from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2h from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2i from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec2u from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3b from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3f from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3h from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3i from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec3u from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4b from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4f from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4h from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4i from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
vec4u from typegpudata.ts 17.19 kB ($${\color{red}+1.1\%}$$)
formatToWGSLType from typegpudata.ts 18.68 kB ($${\color{red}+1.0\%}$$)
uint8 from typegpudata.ts 18.68 kB ($${\color{red}+1.0\%}$$)
float16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32x3 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
float32x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32x3 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint32x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint8 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
sint8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm8 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
snorm8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32x3 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint32x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
uint8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm10 10 10 2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm16 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm16x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm16x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8x2 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8x4 bgra from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
unorm8x4 from typegpudata.ts 18.69 kB ($${\color{red}+1.0\%}$$)
packedFormats from typegpudata.ts 18.71 kB ($${\color{red}+1.0\%}$$)
isPackedData from typegpudata.ts 18.75 kB ($${\color{red}+1.0\%}$$)
alignmentOf from typegpudata.ts 19.73 kB ($${\color{red}+0.9\%}$$)
subgroupAdd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupAll from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupAnd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupAny from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupBallot from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupBroadcastFirst from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupBroadcast from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupElect from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupExclusiveAdd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupExclusiveMul from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupInclusiveAdd from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupInclusiveMul from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupMax from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupMin from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupMul from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupOr from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffleDown from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffleUp from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffleXor from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupShuffle from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
subgroupXor from typegpustd.ts 21.76 kB ($${\color{red}+0.8\%}$$)
isBuiltin from typegpudata.ts 22.45 kB ($${\color{red}+0.8\%}$$)
dataImportOneDirect.ts 22.50 kB ($${\color{red}+0.8\%}$$)
dataImportOneStar.ts 22.50 kB ($${\color{red}+0.8\%}$$)
sizeOf from typegpudata.ts 22.50 kB ($${\color{red}+0.8\%}$$)
isContiguous from typegpudata.ts 22.51 kB ($${\color{red}+0.8\%}$$)
getLongestContiguousPrefix from typegpudata.ts 22.52 kB ($${\color{red}+0.8\%}$$)
textureDimensions from typegpustd.ts 23.51 kB ($${\color{red}+0.8\%}$$)
textureGather from typegpustd.ts 23.51 kB ($${\color{red}+0.8\%}$$)
textureLoad from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleBaseClampToEdge from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleBias from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleCompareLevel from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleCompare from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleGrad from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSampleLevel from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureSample from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
textureStore from typegpustd.ts 23.52 kB ($${\color{red}+0.8\%}$$)
arrayOf from typegpudata.ts 24.00 kB ($${\color{red}+0.8\%}$$)
size from typegpudata.ts 24.19 kB ($${\color{red}+0.7\%}$$)
align from typegpudata.ts 24.19 kB ($${\color{red}+0.7\%}$$)
location from typegpudata.ts 24.19 kB ($${\color{red}+0.7\%}$$)
interpolate from typegpudata.ts 24.20 kB ($${\color{red}+0.7\%}$$)
invariant from typegpudata.ts 24.57 kB ($${\color{red}+0.7\%}$$)
mat4x4f from typegpudata.ts 24.71 kB ($${\color{red}+0.7\%}$$)
identity2 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
identity3 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
identity4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
mat2x2f from typegpudata.ts 24.71 kB ($${\color{red}+0.7\%}$$)
mat3x3f from typegpudata.ts 24.71 kB ($${\color{red}+0.7\%}$$)
rotationX4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
rotationY4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
rotationZ4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
scaling4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
translation4 from typegpustd.ts 24.71 kB ($${\color{red}+0.7\%}$$)
matToArray from typegpudata.ts 24.84 kB ($${\color{red}+0.7\%}$$)
builtin from typegpudata.ts 26.37 kB ($${\color{red}+0.7\%}$$)
pack2x16float from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
pack4x8unorm from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
unpack2x16float from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
unpack4x8unorm from typegpustd.ts 33.72 kB ($${\color{red}+0.5\%}$$)
memoryLayoutOf from typegpudata.ts 39.82 kB ($${\color{red}+0.5\%}$$)
bitcastU32toF32 from typegpustd.ts 41.91 kB ($${\color{red}+0.4\%}$$)
bitcastU32toI32 from typegpustd.ts 41.91 kB ($${\color{red}+0.4\%}$$)
neg from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
add from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
bitShiftLeft from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
bitShiftRight from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
div from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
mod from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
mul from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
sub from typegpustd.ts 46.08 kB ($${\color{red}+0.4\%}$$)
stdImportOneDirect.ts 46.09 kB ($${\color{red}+0.4\%}$$)
stdImportOneStar.ts 46.09 kB ($${\color{red}+0.4\%}$$)
rotateX4 from typegpustd.ts 46.84 kB ($${\color{red}+0.4\%}$$)
scale4 from typegpustd.ts 46.84 kB ($${\color{red}+0.4\%}$$)
translate4 from typegpustd.ts 46.84 kB ($${\color{red}+0.4\%}$$)
rotateY4 from typegpustd.ts 46.85 kB ($${\color{red}+0.4\%}$$)
rotateZ4 from typegpustd.ts 46.85 kB ($${\color{red}+0.4\%}$$)
and from typegpustd.ts 49.02 kB ($${\color{red}+0.4\%}$$)
or from typegpustd.ts 49.02 kB ($${\color{red}+0.4\%}$$)
allEq from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
all from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
eq from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
lt from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
ne from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
not from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
any from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
ge from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
gt from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
isCloseTo from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
le from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
select from typegpustd.ts 49.03 kB ($${\color{red}+0.4\%}$$)
common from typegpu.ts 53.43 kB ($${\color{red}+0.3\%}$$)
isUsableAsUniform from typegpu.ts 60.46 kB ($${\color{red}+0.3\%}$$)
isTexture from typegpu.ts 60.47 kB ($${\color{red}+0.3\%}$$)
isSampler from typegpu.ts 60.48 kB ($${\color{red}+0.3\%}$$)
isComparisonSampler from typegpu.ts 60.49 kB ($${\color{red}+0.3\%}$$)
isVariable from typegpu.ts 62.26 kB ($${\color{red}+0.3\%}$$)
dot from typegpustd.ts 63.38 kB ($${\color{red}+0.3\%}$$)
length from typegpustd.ts 63.38 kB ($${\color{red}+0.3\%}$$)
distance from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
dot4U8Packed from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
fract from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
frexp from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
mix from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
modf from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
abs from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
acos from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
acosh from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
asin from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
asinh from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
atan2 from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
atan from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
atanh from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
ceil from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
clamp from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
cos from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
cosh from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
countLeadingZeros from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
countOneBits from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
countTrailingZeros from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
cross from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
degrees from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
determinant from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
dot4I8Packed from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
exp2 from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
exp from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
extractBits from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
faceForward from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
firstLeadingBit from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
firstTrailingBit from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
floor from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
fma from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
insertBits from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
inverseSqrt from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
ldexp from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
log2 from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
log from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
max from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
min from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
normalize from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
pow from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
quantizeToF16 from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
radians from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
reflect from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
refract from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
reverseBits from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
round from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
saturate from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
sign from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
sin from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
sinh from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
smoothstep from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
sqrt from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
step from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
tan from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
tanh from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
transpose from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
trunc from typegpustd.ts 63.39 kB ($${\color{red}+0.3\%}$$)
d from typegpu.ts 84.63 kB ($${\color{red}+0.2\%}$$)
isUsableAsVertex from typegpu.ts 86.04 kB ($${\color{red}+0.2\%}$$)
isBuffer from typegpu.ts 86.04 kB ($${\color{red}+0.2\%}$$)
dataImportEverything.ts 86.94 kB ($${\color{red}+0.2\%}$$)
std from typegpu.ts 99.54 kB ($${\color{red}+0.2\%}$$)
WgslGenerator from typegpu.ts 102.03 kB ($${\color{red}+0.2\%}$$)
stdImportEverything.ts 102.32 kB ($${\color{red}+0.2\%}$$)
tgpuImportEverything.ts 252.32 kB ($${\color{red}+0.1\%}$$)
tgpu from typegpu.ts 252.32 kB ($${\color{red}+0.1\%}$$)
tgpu.fn from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.init from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.lazy from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.slot from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.const from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.unroll from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.resolve from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.accessor from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.comptime from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.vertexFn from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.computeFn from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.fragmentFn from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.privateVar from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpuImportOne.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.vertexLayout from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.workgroupVar from typegpu.ts 252.33 kB ($${\color{red}+0.1\%}$$)
tgpu.initFromDevice from typegpu.ts 252.34 kB ($${\color{red}+0.1\%}$$)
tgpu.bindGroupLayout from typegpu.ts 252.34 kB ($${\color{red}+0.1\%}$$)
tgpu.mutableAccessor from typegpu.ts 252.34 kB ($${\color{red}+0.1\%}$$)
tgpu.resolveWithContext from typegpu.ts 252.34 kB ($${\color{red}+0.1\%}$$)
importEntireLibrary.ts 279.57 kB ($${\color{red}+0.1\%}$$)
functionWithUseGpu.ts 282 B (➖)
functionWithoutUseGpu.ts 24 B (➖)
MissingBindGroupsError from typegpu.ts 1.34 kB (➖)
MissingLinksError from typegpu.ts 201 B (➖)
MissingSlotValueError from typegpu.ts 151 B (➖)
MissingVertexBuffersError from typegpu.ts 1.35 kB (➖)
NotUniformError from typegpu.ts 1.30 kB (➖)
ResolutionError from typegpu.ts 1.55 kB (➖)
ShaderGenerator from typegpu.ts 1.80 kB (➖)
Void from typegpudata.ts 734 B (➖)
atomic from typegpudata.ts 779 B (➖)
comparisonSampler from typegpudata.ts 753 B (➖)
deepEqual from typegpudata.ts 2.77 kB (➖)
isAccessor from typegpu.ts 65 B (➖)
isAlignAttrib from typegpudata.ts 755 B (➖)
isAtomic from typegpudata.ts 755 B (➖)
isBufferShorthand from typegpu.ts 1.81 kB (➖)
isBuiltinAttrib from typegpudata.ts 757 B (➖)
isData from typegpudata.ts 2.39 kB (➖)
isDecorated from typegpudata.ts 758 B (➖)
isDisarray from typegpudata.ts 1.69 kB (➖)
isInterpolateAttrib from typegpudata.ts 761 B (➖)
isLazy from typegpu.ts 61 B (➖)
isLocationAttrib from typegpudata.ts 758 B (➖)
isLooseData from typegpudata.ts 1.74 kB (➖)
isLooseDecorated from typegpudata.ts 1.70 kB (➖)
isMutableAccessor from typegpu.ts 73 B (➖)
isPtr from typegpudata.ts 752 B (➖)
isSizeAttrib from typegpudata.ts 754 B (➖)
isSlot from typegpu.ts 61 B (➖)
isTgpuComputeFn from typegpu.ts 69 B (➖)
isTgpuFn from typegpu.ts 765 B (➖)
isTgpuFragmentFn from typegpu.ts 70 B (➖)
isTgpuVertexFn from typegpu.ts 68 B (➖)
isUnstruct from typegpudata.ts 1.69 kB (➖)
isUsableAsRender from typegpu.ts 55 B (➖)
isUsableAsSampled from typegpu.ts 56 B (➖)
isUsableAsStorage from typegpu.ts 56 B (➖)
isWgslArray from typegpudata.ts 754 B (➖)
isWgslData from typegpudata.ts 1.31 kB (➖)
isWgslStruct from typegpudata.ts 755 B (➖)
ptrFn from typegpudata.ts 859 B (➖)
ptrHandle from typegpudata.ts 851 B (➖)
ptrPrivate from typegpudata.ts 858 B (➖)
ptrStorage from typegpudata.ts 856 B (➖)
ptrUniform from typegpudata.ts 852 B (➖)
ptrWorkgroup from typegpudata.ts 860 B (➖)
ref from typegpudata.ts 4.18 kB (➖)
sampler from typegpudata.ts 742 B (➖)
struct from typegpudata.ts 3.37 kB (➖)
textureExternal from typegpudata.ts 873 B (➖)
textureStorage1d from typegpudata.ts 1.01 kB (➖)
textureStorage2dArray from typegpudata.ts 1.03 kB (➖)
textureStorage2d from typegpudata.ts 1.01 kB (➖)
textureStorage3d from typegpudata.ts 1.01 kB (➖)
unstruct from typegpudata.ts 1.65 kB (➖)

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

Resolution Time Benchmark

---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.55, 1.23, 2.60, 4.44, 4.53, 7.50, 15.33, 16.22]
  line [0.60, 1.14, 2.63, 4.03, 4.94, 7.79, 14.05, 16.34]
  line [0.66, 1.35, 2.86, 4.30, 4.76, 7.44, 15.48, 14.91]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.24, 0.38, 0.48, 0.60, 0.77, 0.79, 0.93, 0.98]
  line [0.24, 0.32, 0.43, 0.57, 0.76, 0.77, 0.93, 1.01]
  line [0.25, 0.40, 0.47, 0.58, 0.79, 0.86, 1.03, 1.14]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.56, 1.53, 2.74, 4.06, 8.01, 17.06, 36.71, 73.86]
  line [0.65, 1.30, 2.86, 4.06, 8.05, 17.10, 36.73, 73.38]
  line [0.65, 1.45, 2.93, 4.08, 8.17, 16.74, 36.01, 75.59]
Loading

@iwoplaza iwoplaza force-pushed the fix/choose-absfloat-over-i32-in-conversion branch from acef74c to 84950e2 Compare April 20, 2026 20:34
@iwoplaza iwoplaza changed the title [FAILING TESTS] fix: Choose f32 when trying to find a type common with abstractFloat and i32 (or u32) fix: Choose f32 when trying to find a type common with abstractFloat and i32 (or u32) Apr 20, 2026
@iwoplaza iwoplaza force-pushed the fix/choose-absfloat-over-i32-in-conversion branch 3 times, most recently from 65a22ca to 894dc0a Compare April 20, 2026 20:43
@iwoplaza iwoplaza marked this pull request as ready for review April 20, 2026 20:44
Copy link
Copy Markdown

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 fixes TGSL common-type inference so that operations mixing abstractFloat with i32/u32 select f32 (instead of incorrectly preferring an integer type), aligning generated WGSL with expected float semantics for float literals.

Changes:

  • Update implicit conversion ranking to prefer f32 as the common type for {i32|u32} <-> abstractFloat cases.
  • Adjust best-type selection to allow an abstractFloat candidate to resolve to concrete f32.
  • Add/adjust tests covering integer–float multiplication, common-type conversion behavior, and an indentation fixture impacted by the new conversion behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/typegpu/src/tgsl/conversion.ts Updates conversion ranking + best-type selection to resolve abstractFloat mixed with ints to f32.
packages/typegpu/tests/tgsl/conversion.test.ts Adds regression coverage ensuring abstractFloat + i32 yields f32.
packages/typegpu/tests/tgsl/multiplication.test.ts Adds end-to-end coverage for integer * float-literal multiplication producing f32 and warnings.
packages/typegpu/tests/indent.test.ts Updates a loop condition expression to remain valid/stable under the updated conversion behavior.

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

@iwoplaza iwoplaza force-pushed the chore/use-public-api-in-test-utilities branch from 17b7556 to 6d2959c Compare April 20, 2026 20:49
@iwoplaza iwoplaza force-pushed the fix/choose-absfloat-over-i32-in-conversion branch from 894dc0a to c97e537 Compare April 20, 2026 20:49
Comment thread packages/typegpu/src/tgsl/conversion.ts
@iwoplaza iwoplaza force-pushed the chore/use-public-api-in-test-utilities branch from 6d2959c to c7e9ac4 Compare April 21, 2026 16:09
@iwoplaza iwoplaza force-pushed the fix/choose-absfloat-over-i32-in-conversion branch from bf43e7b to 39b48aa Compare April 21, 2026 16:10
Copy link
Copy Markdown
Collaborator

@cieplypolar cieplypolar left a comment

Choose a reason for hiding this comment

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

Looks good

@iwoplaza iwoplaza force-pushed the fix/choose-absfloat-over-i32-in-conversion branch from 39b48aa to b538979 Compare April 21, 2026 16:22
@aleksanderkatan
Copy link
Copy Markdown
Contributor

See #2403

Base automatically changed from chore/use-public-api-in-test-utilities to main April 22, 2026 12:58
@iwoplaza iwoplaza force-pushed the fix/choose-absfloat-over-i32-in-conversion branch from 2dfe4f4 to b627f01 Compare April 22, 2026 12:59
Copy link
Copy Markdown
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.

yes

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.

4 participants