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

refactor: move opt in for shaders to virtual feature function #117

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

FlayaN
Copy link
Collaborator

@FlayaN FlayaN commented Oct 3, 2023

Added virtual GetShaderDefineName to feature.h that can be overriden by each feature to specify the Shader define name for each feature.

Added virtual HasShaderDefine to feature.h to specify if RE::BSShader::Type is implemented by that feature, this is used in ShaderCache.cpp to know if it should add a define for each loaded feature

This PR will not require updating ShaderCache.cpp for each new/updated feature, can instead be fully controlled by the feature instead

Has tested basic functionality for each feature
Can download a release for this PR here https://github.com/FlayaN/skyrim-community-shaders/releases/tag/untagged-db023c4d6153eaa50ba7

Copy link
Collaborator

@alandtse alandtse left a comment

Choose a reason for hiding this comment

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

Lgtm

@doodlum doodlum merged commit bbbe409 into doodlum:dev Oct 5, 2023
3 checks passed
@FlayaN FlayaN deleted the shader-define-in-feature branch March 11, 2024 18:20
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.

None yet

3 participants