Repository navigation
feat: Buffer regions - #3272
Draft
reczkok wants to merge 7 commits into
Draft
feat: Buffer regions#3272reczkok wants to merge 7 commits into
reczkok wants to merge 7 commits into
Conversation
reczkok
added this pull request to stack #3273
October 24, 2026 18:46
|
pkg.pr.new packages benchmark commit |
Bundle size comparison (
|
| 🟢 Decreased | ➖ Unchanged | 🔴 Increased (max 13.12%) | ❔ Unknown |
|---|---|---|---|
| 0 | 312 | 43 | 4 |
import * as ... in PR vs import * as ... in target (did bundle size increase?):
| Test | tsdown |
|---|---|
| STATIC_std.ts | 114.87 kB ( |
| tgpu_bindGroupLayout.ts | 76.70 kB ( |
| tgpu_resolveWithContext.ts | 169.26 kB ( |
| tgpu_resolve.ts | 169.32 kB ( |
| d_struct.ts | 4.01 kB ( |
| STATIC_allImports.ts | 324.79 kB ( |
| tgpu_initFromDevice.ts | 261.94 kB ( |
| tgpu_init.ts | 262.48 kB ( |
| STATIC_tgpu.ts | 273.70 kB ( |
| STATIC_d.ts | 72.28 kB ( |
| d_memoryLayoutOf.ts | 35.74 kB ( |
| d_arrayOf.ts | 33.72 kB ( |
| d_builtin.ts | 36.19 kB ( |
| common_fullScreenTriangle.ts | 48.82 kB ( |
| d_bytes.ts | 1011 B |
| std_bufferArrayView.ts | 40.44 kB |
| std_bufferLength.ts | 41.58 kB |
| std_bufferView.ts | 40.44 kB |
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.
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 [1.05, 2.09, 4.66, 6.85, 8.98, 12.27, 26.05, 27.05]
line [1.01, 2.08, 4.56, 7.16, 8.08, 12.96, 26.33, 25.96]
line [1.02, 2.09, 4.70, 7.00, 8.38, 13.58, 26.00, 26.98]
---
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.33, 0.52, 0.72, 0.88, 1.20, 1.26, 1.52, 1.67]
line [0.32, 0.54, 0.77, 0.95, 1.19, 1.33, 1.45, 1.65]
line [0.29, 0.52, 0.69, 0.83, 1.16, 1.22, 1.43, 1.64]
---
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.87, 2.19, 4.42, 8.93, 15.45, 28.32, 59.23, 118.41]
line [0.95, 2.15, 3.83, 7.87, 13.55, 28.02, 59.36, 120.97]
line [1.01, 2.31, 3.82, 7.53, 13.98, 28.55, 59.36, 120.86]
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the buffer views half of #2816, named
regionshere since buffer views now means the WGSL feature.buffer.region(schema, accessor)is a typed range of a buffer that reads, writes and binds only its own bytes, and works as a vertex, index or indirect buffer