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

Modify Derive to allow unit structs for RenderResources. #1089

Merged
merged 1 commit into from
Dec 23, 2020
Merged

Modify Derive to allow unit structs for RenderResources. #1089

merged 1 commit into from
Dec 23, 2020

Conversation

OptimisticPeach
Copy link
Contributor

This allows the following syntax:

#[derive(RenderResources)]
struct MyMaterial;

Whereas the following used to be required:

#[derive(RenderResources)]
struct MyMaterial {}

@Moxinilian Moxinilian added C-Enhancement A new feature A-Rendering Drawing game state to the screen labels Dec 20, 2020
@cart
Copy link
Member

cart commented Dec 23, 2020

Good call. Thanks!

@cart cart merged commit cbc0fe1 into bevyengine:master Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Enhancement A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants