Skip to content

feat: Stabilize tgpu.fn & remove deprecated .does API #1411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 30, 2025

Conversation

iwoplaza
Copy link
Collaborator

No description provided.

@iwoplaza iwoplaza changed the title feat: Stabilize tgpu.fn feat: Stabilize tgpu.fn & remove deprecated .does API Jun 26, 2025
Copy link

github-actions bot commented Jun 26, 2025

pkg.pr.new

packages

pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@1411
pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@ac425be6692b6171eeb0cab3487d3c44a67be17a

benchmark
view benchmark

commit
view commit

@iwoplaza iwoplaza marked this pull request as ready for review June 27, 2025 11:05
@mhawryluk
Copy link
Contributor

mhawryluk commented Jun 27, 2025

we should remove/rename the --experimental-functions option in tgpu-gen. and remove ['~unstable'] there

return color;
}
`.$uses({ purple, getBlue });
const getGradientColor = tgpu.fn([d.f32], d.vec4f)`(ratio: f32) -> vec4f {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should mention in the guide that you can skip the types in the function header, if we don't already

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That gonna be another PR 🫡

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@reczkok
Copy link
Contributor

reczkok commented Jun 27, 2025

We could update code snippets in kernel-and-js-directive.test.ts

@iwoplaza iwoplaza linked an issue Jun 27, 2025 that may be closed by this pull request
Copy link
Contributor

@reczkok reczkok left a comment

Choose a reason for hiding this comment

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

Let's gooo 🥳

@iwoplaza iwoplaza merged commit 978f7a2 into main Jun 30, 2025
6 checks passed
@iwoplaza iwoplaza deleted the feat/stabilize-tgpu-fn branch June 30, 2025 14:35
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.

feat: Change functions to stable (0.6.0)
3 participants