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

preprocessor directives followup #89

Merged
merged 8 commits into from
Dec 9, 2024

Conversation

chrishavlin
Copy link
Contributor

This PR follows on #70 and

  • adds the ability to toggle preprocessor directives interactively (by triggering re-compilation)
  • replaces the depth buffer toggle (use_db) with a preprocessor USE_DB definition. I'm actually not sure switching this to a pre-processor directive is better or worse, but it does nicely illustrate the functionality.

@chrishavlin chrishavlin added the enhancement New feature or request label Jun 21, 2023
@chrishavlin chrishavlin marked this pull request as draft June 21, 2023 22:27
@chrishavlin
Copy link
Contributor Author

draft for now (but feel free to look now, @matthewturk ). I went through a couple iterations of approaches, want to double check that I didn't leave behind unwanted code... but also wanted to push this up now :)

@chrishavlin
Copy link
Contributor Author

oh, also a draft cause I didn't actually run the tests locally. oops. so will have to fix a few things. but right now: running examples/amr_volume_rendering.py and toggling the depth buffer box DOES work. just need to better handle a few things to get those tests passing...

@chrishavlin chrishavlin force-pushed the preprocessor_dirs_update branch from ae46023 to 6e3e08d Compare December 6, 2024 18:58
@chrishavlin
Copy link
Contributor Author

oops, bad merge...

@matthewturk
Copy link
Member

Thing this needs much else?

@chrishavlin chrishavlin marked this pull request as ready for review December 6, 2024 19:58
@chrishavlin
Copy link
Contributor Author

Thing this needs much else?

nope! just added some tests.

Copy link
Member

@matthewturk matthewturk left a comment

Choose a reason for hiding this comment

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

I like this. I think it would also be helpful for the compute shaders stuff in #143, because we could use it to set the workgroup size. Nice!

@chrishavlin
Copy link
Contributor Author

ya! lots of potential uses!

@chrishavlin chrishavlin merged commit 525c46f into yt-project:main Dec 9, 2024
6 checks passed
@chrishavlin chrishavlin deleted the preprocessor_dirs_update branch December 9, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants