-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
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 :) |
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 |
self.colormap_fragment = new_combo["second_fragment"] | ||
self.vertex_shader = new_combo[ | ||
"first_vertex" | ||
], self._program1_pp_defs.get_shader_defs("vertex") |
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.
tests are failing cause self._program1_pp_defs
(and 2) can be None
.
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.
Should we instead have them not allow none, and supply a default that is an empty preprocessor state?
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.
ya, I do think that'd be better!
This PR follows on #70 and
use_db
) with a preprocessorUSE_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.