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

Move contents of kas-theme to kas-core, kas-wgpu #374

Merged
merged 7 commits into from
Jan 16, 2023
Merged

Move contents of kas-theme to kas-core, kas-wgpu #374

merged 7 commits into from
Jan 16, 2023

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Jan 14, 2023

Theme traits need to be moved to kas-core for the next PR, which moves the shell and winit components to kas-core (which is needed for the next PR, async work).

This PR moves most of kas-theme to kas-core, but moves the "Shaded Theme" and accompanying draw extensions to kas-wgpu (since these extensions are unlikely to be implemented for any other graphics backend, due both to the use of specific shaders and the low popularity of the theme).

This required making some fields of SimpleTheme public to
support ShadedTheme. The theme extension/inheritence needs
mechanism needs to be reviewed.
This theme uses special WGPU shaders, hence it makes sense
that it live here (unless/until another graphics backend
supports it; not too likely since it isn't a popular theme).
We don't have a reason to make theme components optional.
@dhardy dhardy merged commit 867e691 into master Jan 16, 2023
@dhardy dhardy mentioned this pull request Feb 26, 2023
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.

1 participant