-
Notifications
You must be signed in to change notification settings - Fork 215
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
Move 'transform-feedback' example out of WIP, fix errors #1883
Conversation
Marking as 'ready for review' just in a general aim to move more code out of WIP into a stable folder, but clearly there are some non-ideal things still in this PR:
|
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.
Thanks. This used to be part of the tutorials I think, but since TransformFeedback is webgl specific better to keep it in another section, maybe API, maybe webgl
This also affects the transform feedback tutorial page in the docs folder.
If you are interested in adding to the to the website, build the website (cd website; yarn; yarn start) and make sure it shows up in the right place and the tutorial pages work. That could be a separate PR of course.
I've assumed we intend the |
That would be great, but I felt that first we have to create a computeShader variant for WebGPU and see how that looks. Until then it is hard to say how a portable API would look, or if making Transform portable truly makes sense. Transform class accept code snippets I think, which might be very different. Also computeShaders can e.g. do random access on memory through storage buffers which could lead to very different programming patterns from per-row attribute -> attribute processing. |
Hmmm good points. So for v9.0 I'm looking at splitting BufferTransform / TextureTransform as two (immediately deprecated) classes we'd replace in v9.1. Given that they're temporary, and only nominally WebGL-agnostic... maybe we'll put this in a |
Well, we can always "un-deprecate" them in 9.1, should they grow on us. It is just one of our mechanisms for signaling that we are not sure. We can also export with leading underscores etc. |
That is reasonable. |
fef6ebe
to
391574a
Compare
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
391574a
to
0f70db4
Compare
0f70db4
to
45b8bd0
Compare
Fixes the
transform-feedback
example. Some cleanup still needed. Like #1879, I'm relying on an extra buffer instead of reading/writing the same buffer, and I'm not sure how to avoid that yet. The 'swap' implementation is more verbose than in v8, I'll wait for other ideas on the API to fix that.transform-feedback.mov
Related: