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 defines to a shader Program before compiling #17

Open
Bundas102 opened this issue Dec 1, 2019 · 0 comments
Open

Add defines to a shader Program before compiling #17

Bundas102 opened this issue Dec 1, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Bundas102
Copy link
Collaborator

It would be nice if we could add #define directives to shader programs.
E.g.:
prog << "USE_SHADOW"_def => #define USE_SHADOW
or
prog << "SHADOW_FUN"_def << 2 => #define SHADOW_FUN 2
or
prog << "SAMPLER_TYPE"_def << "sampler2d" => #define SAMPLER_TYPE sampler2d

Kind of like subroutines but in compile time.

@Bundas102 Bundas102 added the enhancement New feature or request label Dec 1, 2019
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

No branches or pull requests

1 participant