mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #8] feat(🫐): Use TypeGPU to strengthen the I/O layer between the CPU and GPU (TGSL Version) #217
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/8
Author: @iwoplaza
Created: 8/4/2025
Status: 🔄 Open
Base:
main← Head:feat/typegpu-supersampling-tgsl📝 Commits (10+)
a98a8ffUse TypeGPU schemas to strengthen the IO layer between the super-sampling shader and pipeline setupcc77469Split the shader into TypeGPU functionsc955d23Use TypeGPU pipelinesb705866Update to typegpu 0.7.03e89fabRewrite supersampling functions in TypeScript8b248f4Merge branch 'main' into feat/typegpu-supersampling-tgsl1645d0eMerge branch 'main' into feat/typegpu-supersampling-tgsld4e8941Update bun.lockfcca43fUpdate bun.lock2be3271Update bun.lock📊 Changes
7 files changed (+312 additions, -278 deletions)
View changed files
📝
bun.lock(+48 -0)➕
packages/core/bunfig.toml(+1 -0)📝
packages/core/package.json(+3 -1)➕
packages/core/preload.ts(+4 -0)📝
packages/core/src/3d/canvas.ts(+28 -76)➕
packages/core/src/3d/shaders/supersampling.ts(+228 -0)➖
packages/core/src/3d/shaders/supersampling.wgsl(+0 -201)📄 Description
This is an updated version of the original PR, but instead of functions being implemented in WGSL, they're implemented in TypeScript. This allows type-safety to flow from host code directly to shader code.
The inclusion of
unplugin-typegpuallows the implementations oftgpu.fnfunctions to be compiled to WGSL at bundle time🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.