Skip to content
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

TSL: textureStore() and example #26648

Merged
merged 5 commits into from
Aug 26, 2023
Merged

TSL: textureStore() and example #26648

merged 5 commits into from
Aug 26, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Aug 26, 2023

Related issue: Close #26600

Description

Added support for textureStore() and added an example of GPU Compute using WGSL. At the moment I can't add a very extensive support for textureStore() due to the other open tasks of WebGPURenderer, but this could certainly be done if not for me by other collaborators, this PR opens a way for this implementation.

@sunag sunag added this to the r156 milestone Aug 26, 2023
Comment on lines +60 to +61
storageTexture.magFilter = THREE.LinearFilter;
storageTexture.minFilter = THREE.NearestFilter;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@sunag Is there a reason these are different?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nothing special, I'll change it so as not to confuse.

@mrdoob
Copy link
Owner

mrdoob commented Sep 28, 2023

Improved the example to make it more visually appealing in d6c8dd0

Screenshot 2023-09-28 at 23 50 51

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.

I would be very happy about more examples with wgslFn
3 participants