close
Skip to content

Modify Derive to allow unit structs for RenderResources.#1089

Merged
cart merged 1 commit into
bevyengine:masterfrom
OptimisticPeach:derive-fix
Dec 23, 2020
Merged

Modify Derive to allow unit structs for RenderResources.#1089
cart merged 1 commit into
bevyengine:masterfrom
OptimisticPeach:derive-fix

Conversation

@OptimisticPeach
Copy link
Copy Markdown
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-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen labels Dec 20, 2020
@cart
Copy link
Copy Markdown
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-Feature A new feature, making something new possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants