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

add #dispatch_once to preprocessor #11

Merged
merged 2 commits into from
Sep 30, 2023
Merged

Conversation

munrocket
Copy link
Contributor

@munrocket munrocket commented Sep 28, 2023

  • make proper example
  • add pp token
  • add entrypoint init condition

@munrocket munrocket changed the title initialization_only draft pp: #initialization_only draft Sep 28, 2023
@munrocket munrocket changed the title pp: #initialization_only draft add #run_once to preprocessor Sep 28, 2023
@munrocket munrocket marked this pull request as ready for review September 28, 2023 22:27
@munrocket munrocket changed the title add #run_once to preprocessor add #dispatch_once to preprocessor Sep 28, 2023
@munrocket
Copy link
Contributor Author

The reason I implemented this was because I wanted to visualize the Lorenz Attractor. This algorithm cannot be parallelized, and when I precompute the values ​​on the CPU, I lose artistic flexibility. With this PR I can compute Lorenz Attractor only once.

Next important feature is dispatch_group and dispatch_count can be removed IMHO (it is used only by 2 shaders).

@davidar davidar merged commit 9c13801 into compute-toys:master Sep 30, 2023
2 checks passed
@davidar
Copy link
Contributor

davidar commented Sep 30, 2023

Great, thanks!

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.

2 participants