-
-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Resolvable guarded compute pipelines #1874
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
base: main
Are you sure you want to change the base?
Conversation
…ed-compute-pipelines
|
pkg.pr.new packages benchmark commit |
There was a problem hiding this 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 exposes the underlying pipeline and sizeUniform properties on TgpuGuardedComputePipeline to enable resolution of guarded compute pipelines. Since tgpu.resolve cannot directly resolve guarded pipelines (which are wrappers), users need access to the inner pipeline for shader code generation.
- Added public getters for
pipelineandsizeUniformonTgpuGuardedComputePipeline - Implemented the getters in
TgpuGuardedComputePipelineImpl - Added comprehensive test coverage for pipeline resolution scenarios
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/typegpu/src/core/root/rootTypes.ts | Added JSDoc documentation and type definitions for pipeline and sizeUniform properties on the TgpuGuardedComputePipeline interface |
| packages/typegpu/src/core/root/init.ts | Implemented getter methods for pipeline and sizeUniform in TgpuGuardedComputePipelineImpl class |
| packages/typegpu/tests/pipeline-resolution.test.ts | Added comprehensive test suite covering render pipeline, compute pipeline, guarded compute pipeline resolution, and error handling for multiple pipelines |
| apps/typegpu-docs/src/content/docs/fundamentals/utils.mdx | Added documentation explaining how to access the inner pipeline from a guarded pipeline for use with tgpu.resolve |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
We decided not to make the guarded pipelines resolvable, but to instead expose the underlying pipeline.