Skip to content

feat(@typepgu/gl): Generate GLSL function signature#2360

Draft
iwoplaza wants to merge 2 commits intomainfrom
feat/generate-glsl-signature
Draft

feat(@typepgu/gl): Generate GLSL function signature#2360
iwoplaza wants to merge 2 commits intomainfrom
feat/generate-glsl-signature

Conversation

@iwoplaza
Copy link
Copy Markdown
Collaborator

Blocked by #2359

@github-actions
Copy link
Copy Markdown

pkg.pr.new

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

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

benchmark
view benchmark

commit
view commit

@github-actions
Copy link
Copy Markdown

📊 Bundle Size Comparison

🟢 Decreased ➖ Unchanged 🔴 Increased ❔ Unknown
7 57 286 0

👀 Notable results

Static test results:

No major changes.

Dynamic test results:

No major changes.

📋 All results

Click to reveal the results table (349 entries).
Test tsdown
WgslGenerator from typegpu.ts 101.16 kB ($${\color{red}+0.4\%}$$)
bool from typegpudata.ts 10.61 kB ($${\color{red}+0.2\%}$$)
f16 from typegpudata.ts 10.61 kB ($${\color{red}+0.2\%}$$)
f32 from typegpudata.ts 10.61 kB ($${\color{red}+0.2\%}$$)
i32 from typegpudata.ts 10.61 kB ($${\color{red}+0.2\%}$$)
u32 from typegpudata.ts 10.61 kB ($${\color{red}+0.2\%}$$)
u16 from typegpudata.ts 10.63 kB ($${\color{red}+0.2\%}$$)
textureDepth2d from typegpudata.ts 11.05 kB ($${\color{red}+0.2\%}$$)
textureDepthCube from typegpudata.ts 11.06 kB ($${\color{red}+0.2\%}$$)
texture1d from typegpudata.ts 11.06 kB ($${\color{red}+0.2\%}$$)
texture2d from typegpudata.ts 11.06 kB ($${\color{red}+0.2\%}$$)
texture3d from typegpudata.ts 11.06 kB ($${\color{red}+0.2\%}$$)
textureCube from typegpudata.ts 11.07 kB ($${\color{red}+0.2\%}$$)
textureDepth2dArray from typegpudata.ts 11.07 kB ($${\color{red}+0.2\%}$$)
textureDepthCubeArray from typegpudata.ts 11.08 kB ($${\color{red}+0.2\%}$$)
textureDepthMultisampled2d from typegpudata.ts 11.08 kB ($${\color{red}+0.2\%}$$)
texture2dArray from typegpudata.ts 11.08 kB ($${\color{red}+0.2\%}$$)
isUsableAsUniform from typegpu.ts 60.15 kB ($${\color{green}-0.2\%}$$)
isTexture from typegpu.ts 60.16 kB ($${\color{green}-0.2\%}$$)
isSampler from typegpu.ts 60.17 kB ($${\color{green}-0.2\%}$$)
textureCubeArray from typegpudata.ts 11.09 kB ($${\color{red}+0.2\%}$$)
isComparisonSampler from typegpu.ts 60.18 kB ($${\color{green}-0.2\%}$$)
textureMultisampled2d from typegpudata.ts 11.09 kB ($${\color{red}+0.2\%}$$)
isVariable from typegpu.ts 61.95 kB ($${\color{green}-0.2\%}$$)
discard from typegpustd.ts 11.82 kB ($${\color{red}+0.1\%}$$)
arrayLength from typegpustd.ts 12.05 kB ($${\color{red}+0.1\%}$$)
extensionEnabled from typegpustd.ts 12.13 kB ($${\color{red}+0.1\%}$$)
range from typegpustd.ts 12.40 kB ($${\color{red}+0.1\%}$$)
disarrayOf from typegpudata.ts 12.56 kB ($${\color{red}+0.1\%}$$)
dpdx from typegpustd.ts 12.66 kB ($${\color{red}+0.1\%}$$)
dpdxCoarse from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
dpdxFine from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
dpdyCoarse from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
dpdyFine from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
dpdy from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
fwidthCoarse from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
fwidthFine from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
fwidth from typegpustd.ts 12.67 kB ($${\color{red}+0.1\%}$$)
atomicLoad from typegpustd.ts 13.42 kB ($${\color{red}+0.1\%}$$)
atomicStore from typegpustd.ts 13.42 kB ($${\color{red}+0.1\%}$$)
textureBarrier from typegpustd.ts 13.42 kB ($${\color{red}+0.1\%}$$)
atomicAdd from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
atomicAnd from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
atomicMax from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
atomicMin from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
atomicOr from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
atomicSub from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
atomicXor from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
storageBarrier from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
workgroupBarrier from typegpustd.ts 13.43 kB ($${\color{red}+0.1\%}$$)
isUsableAsVertex from typegpu.ts 85.44 kB ($${\color{green}-0.1\%}$$)
isBuffer from typegpu.ts 85.45 kB ($${\color{green}-0.1\%}$$)
vec2b from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec2f from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec2h from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec2i from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec2u from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec3b from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec3f from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec3h from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec3i from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec3u from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec4b from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec4f from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec4h from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec4i from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
vec4u from typegpudata.ts 17.00 kB ($${\color{red}+0.1\%}$$)
formatToWGSLType from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint8 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float16 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float16x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float16x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float32 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float32x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float32x3 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
float32x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint16 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint16x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint16x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint32 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint32x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint32x3 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint32x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint8 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint8x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
sint8x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
snorm16 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
snorm16x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
snorm16x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
snorm8 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
snorm8x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
snorm8x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint16 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint16x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint16x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint32 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint32x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint32x3 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint32x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint8x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
uint8x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm10 10 10 2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm16 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm16x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm16x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm8 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm8x2 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm8x4 bgra from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
unorm8x4 from typegpudata.ts 18.49 kB ($${\color{red}+0.1\%}$$)
packedFormats from typegpudata.ts 18.51 kB ($${\color{red}+0.1\%}$$)
isPackedData from typegpudata.ts 18.56 kB ($${\color{red}+0.1\%}$$)
alignmentOf from typegpudata.ts 19.53 kB ($${\color{red}+0.1\%}$$)
subgroupAdd from typegpustd.ts 21.56 kB ($${\color{red}+0.1\%}$$)
subgroupAll from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupAnd from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupAny from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupBallot from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupBroadcastFirst from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupBroadcast from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupElect from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupExclusiveAdd from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupExclusiveMul from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupInclusiveAdd from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupInclusiveMul from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupMax from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupMin from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupMul from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupOr from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupShuffleDown from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupShuffleUp from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupShuffleXor from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupShuffle from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
subgroupXor from typegpustd.ts 21.57 kB ($${\color{red}+0.1\%}$$)
isBuiltin from typegpudata.ts 22.26 kB ($${\color{red}+0.1\%}$$)
dataImportOneDirect.ts 22.31 kB ($${\color{red}+0.1\%}$$)
dataImportOneStar.ts 22.31 kB ($${\color{red}+0.1\%}$$)
sizeOf from typegpudata.ts 22.31 kB ($${\color{red}+0.1\%}$$)
isContiguous from typegpudata.ts 22.32 kB ($${\color{red}+0.1\%}$$)
getLongestContiguousPrefix from typegpudata.ts 22.33 kB ($${\color{red}+0.1\%}$$)
textureDimensions from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureGather from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureLoad from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureSampleBaseClampToEdge from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureSampleBias from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureSampleCompareLevel from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureSampleCompare from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureSampleLevel from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureSample from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
textureStore from typegpustd.ts 23.05 kB ($${\color{red}+0.1\%}$$)
arrayOf from typegpudata.ts 23.80 kB ($${\color{red}+0.1\%}$$)
size from typegpudata.ts 24.00 kB ($${\color{red}+0.1\%}$$)
align from typegpudata.ts 24.00 kB ($${\color{red}+0.1\%}$$)
location from typegpudata.ts 24.00 kB ($${\color{red}+0.1\%}$$)
interpolate from typegpudata.ts 24.00 kB ($${\color{red}+0.1\%}$$)
invariant from typegpudata.ts 24.37 kB ($${\color{red}+0.1\%}$$)
mat4x4f from typegpudata.ts 24.52 kB ($${\color{red}+0.1\%}$$)
identity2 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
identity3 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
identity4 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
mat2x2f from typegpudata.ts 24.52 kB ($${\color{red}+0.1\%}$$)
mat3x3f from typegpudata.ts 24.52 kB ($${\color{red}+0.1\%}$$)
rotationX4 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
rotationY4 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
rotationZ4 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
scaling4 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
translation4 from typegpustd.ts 24.52 kB ($${\color{red}+0.1\%}$$)
matToArray from typegpudata.ts 24.65 kB ($${\color{red}+0.1\%}$$)
builtin from typegpudata.ts 26.17 kB ($${\color{red}+0.1\%}$$)
pack2x16float from typegpustd.ts 33.51 kB ($${\color{red}+0.1\%}$$)
pack4x8unorm from typegpustd.ts 33.51 kB ($${\color{red}+0.1\%}$$)
unpack2x16float from typegpustd.ts 33.51 kB ($${\color{red}+0.1\%}$$)
unpack4x8unorm from typegpustd.ts 33.51 kB ($${\color{red}+0.1\%}$$)
memoryLayoutOf from typegpudata.ts 39.61 kB ($${\color{red}+0.0\%}$$)
bitcastU32toF32 from typegpustd.ts 41.71 kB ($${\color{red}+0.0\%}$$)
bitcastU32toI32 from typegpustd.ts 41.72 kB ($${\color{red}+0.0\%}$$)
common from typegpu.ts 53.30 kB ($${\color{red}+0.0\%}$$)
neg from typegpustd.ts 45.88 kB ($${\color{red}+0.0\%}$$)
add from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
bitShiftLeft from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
bitShiftRight from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
div from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
mod from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
mul from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
sub from typegpustd.ts 45.89 kB ($${\color{red}+0.0\%}$$)
stdImportOneDirect.ts 45.89 kB ($${\color{red}+0.0\%}$$)
stdImportOneStar.ts 45.89 kB ($${\color{red}+0.0\%}$$)
rotateX4 from typegpustd.ts 46.65 kB ($${\color{red}+0.0\%}$$)
scale4 from typegpustd.ts 46.65 kB ($${\color{red}+0.0\%}$$)
translate4 from typegpustd.ts 46.65 kB ($${\color{red}+0.0\%}$$)
rotateY4 from typegpustd.ts 46.65 kB ($${\color{red}+0.0\%}$$)
rotateZ4 from typegpustd.ts 46.65 kB ($${\color{red}+0.0\%}$$)
and from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
not from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
or from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
allEq from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
all from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
eq from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
ge from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
lt from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
ne from typegpustd.ts 48.41 kB ($${\color{red}+0.0\%}$$)
any from typegpustd.ts 48.42 kB ($${\color{red}+0.0\%}$$)
gt from typegpustd.ts 48.42 kB ($${\color{red}+0.0\%}$$)
isCloseTo from typegpustd.ts 48.42 kB ($${\color{red}+0.0\%}$$)
le from typegpustd.ts 48.42 kB ($${\color{red}+0.0\%}$$)
select from typegpustd.ts 48.42 kB ($${\color{red}+0.0\%}$$)
dot from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
length from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
distance from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
dot4U8Packed from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
fract from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
frexp from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
mix from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
modf from typegpustd.ts 63.19 kB ($${\color{red}+0.0\%}$$)
abs from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
acos from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
acosh from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
asin from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
asinh from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
atan2 from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
atan from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
atanh from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
ceil from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
clamp from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
cos from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
cosh from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
countLeadingZeros from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
countOneBits from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
countTrailingZeros from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
cross from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
degrees from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
determinant from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
dot4I8Packed from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
exp2 from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
exp from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
extractBits from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
faceForward from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
firstLeadingBit from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
firstTrailingBit from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
floor from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
fma from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
insertBits from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
inverseSqrt from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
ldexp from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
log2 from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
log from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
max from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
min from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
normalize from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
pow from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
quantizeToF16 from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
radians from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
reflect from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
refract from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
reverseBits from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
round from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
saturate from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
sign from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
sin from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
sinh from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
smoothstep from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
sqrt from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
step from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
tan from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
tanh from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
transpose from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
trunc from typegpustd.ts 63.20 kB ($${\color{red}+0.0\%}$$)
d from typegpu.ts 84.46 kB ($${\color{red}+0.0\%}$$)
dataImportEverything.ts 86.77 kB ($${\color{red}+0.0\%}$$)
std from typegpu.ts 98.65 kB ($${\color{red}+0.0\%}$$)
stdImportEverything.ts 101.39 kB ($${\color{red}+0.0\%}$$)
tgpuImportEverything.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.fn from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.init from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.lazy from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.slot from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.const from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.unroll from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.resolve from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.accessor from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.comptime from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.vertexFn from typegpu.ts 250.30 kB ($${\color{red}+0.0\%}$$)
tgpu.computeFn from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.fragmentFn from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.privateVar from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpuImportOne.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.vertexLayout from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.workgroupVar from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.initFromDevice from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.bindGroupLayout from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.mutableAccessor from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
tgpu.resolveWithContext from typegpu.ts 250.31 kB ($${\color{red}+0.0\%}$$)
importEntireLibrary.ts 277.21 kB ($${\color{red}+0.0\%}$$)
functionWithUseGpu.ts 282 B (➖)
functionWithoutUseGpu.ts 24 B (➖)
MissingBindGroupsError from typegpu.ts 1.31 kB (➖)
MissingLinksError from typegpu.ts 201 B (➖)
MissingSlotValueError from typegpu.ts 151 B (➖)
MissingVertexBuffersError from typegpu.ts 1.32 kB (➖)
NotUniformError from typegpu.ts 1.27 kB (➖)
ResolutionError from typegpu.ts 1.52 kB (➖)
ShaderGenerator from typegpu.ts 1.81 kB (➖)
Void from typegpudata.ts 700 B (➖)
atomic from typegpudata.ts 745 B (➖)
comparisonSampler from typegpudata.ts 719 B (➖)
deepEqual from typegpudata.ts 2.74 kB (➖)
isAccessor from typegpu.ts 65 B (➖)
isAlignAttrib from typegpudata.ts 721 B (➖)
isAtomic from typegpudata.ts 721 B (➖)
isBufferShorthand from typegpu.ts 1.75 kB (➖)
isBuiltinAttrib from typegpudata.ts 723 B (➖)
isData from typegpudata.ts 2.35 kB (➖)
isDecorated from typegpudata.ts 724 B (➖)
isDisarray from typegpudata.ts 1.66 kB (➖)
isInterpolateAttrib from typegpudata.ts 727 B (➖)
isLazy from typegpu.ts 61 B (➖)
isLocationAttrib from typegpudata.ts 724 B (➖)
isLooseData from typegpudata.ts 1.70 kB (➖)
isLooseDecorated from typegpudata.ts 1.67 kB (➖)
isMutableAccessor from typegpu.ts 73 B (➖)
isPtr from typegpudata.ts 718 B (➖)
isSizeAttrib from typegpudata.ts 720 B (➖)
isSlot from typegpu.ts 61 B (➖)
isTgpuComputeFn from typegpu.ts 69 B (➖)
isTgpuFn from typegpu.ts 731 B (➖)
isTgpuFragmentFn from typegpu.ts 70 B (➖)
isTgpuVertexFn from typegpu.ts 68 B (➖)
isUnstruct from typegpudata.ts 1.66 kB (➖)
isUsableAsRender from typegpu.ts 55 B (➖)
isUsableAsSampled from typegpu.ts 56 B (➖)
isUsableAsStorage from typegpu.ts 56 B (➖)
isWgslArray from typegpudata.ts 720 B (➖)
isWgslData from typegpudata.ts 1.28 kB (➖)
isWgslStruct from typegpudata.ts 721 B (➖)
ptrFn from typegpudata.ts 825 B (➖)
ptrHandle from typegpudata.ts 817 B (➖)
ptrPrivate from typegpudata.ts 824 B (➖)
ptrStorage from typegpudata.ts 822 B (➖)
ptrUniform from typegpudata.ts 818 B (➖)
ptrWorkgroup from typegpudata.ts 826 B (➖)
ref from typegpudata.ts 4.14 kB (➖)
sampler from typegpudata.ts 708 B (➖)
struct from typegpudata.ts 3.34 kB (➖)
textureExternal from typegpudata.ts 839 B (➖)
textureStorage1d from typegpudata.ts 1003 B (➖)
textureStorage2dArray from typegpudata.ts 1021 B (➖)
textureStorage2d from typegpudata.ts 1003 B (➖)
textureStorage3d from typegpudata.ts 1003 B (➖)
unstruct from typegpudata.ts 1.61 kB (➖)

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

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.

1 participant