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

Updated preprocessor to optionally remove defines from source #7226

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Dec 20, 2024

We use preprocessor to process hash directives in the GLSL shader. The processor would leave lines like this in the code:

#define VALUE
...
// the value could be used in the code
float count = VALUE;
...
#undef VALUE

but as WGSL language does not support defines at all, the preprocessor can optionally strip those.

This is not used currently, but will be used to process WGSL shaders.

@mvaligursky mvaligursky merged commit accc78d into main Dec 20, 2024
8 checks passed
@mvaligursky mvaligursky deleted the mv-shader-processor-remove-defines branch December 20, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants