Skip to content

[Merged by Bors] - Ported WgpuOptions to bevy_render2#3282

Closed
folke wants to merge 1 commit intobevyengine:mainfrom
folke:render2_wgpuoptions
Closed

[Merged by Bors] - Ported WgpuOptions to bevy_render2#3282
folke wants to merge 1 commit intobevyengine:mainfrom
folke:render2_wgpuoptions

Conversation

@folke
Copy link
Copy Markdown
Contributor

@folke folke commented Dec 9, 2021

Objective

The new renderer does not support any options yet for wgpu. These are needed for example for rendering wireframes (see #3193).

Solution

I've ported WgpuOptions to bevy_render2.

The defaults match the defaults that were used before this PR (meaning, some specific options when target_arch = wasm32).

Additionally, I removed Auto from WgpuBackends and added Primary. The default will use primary or GL based on the target_arch.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Dec 9, 2021
@folke folke force-pushed the render2_wgpuoptions branch from fdb33f7 to 6df739f Compare December 9, 2021 20:56
@folke folke requested a review from cart December 9, 2021 20:59
@folke folke force-pushed the render2_wgpuoptions branch from 6df739f to 9786197 Compare December 9, 2021 21:03
@folke folke requested a review from cart December 9, 2021 21:07
@cart
Copy link
Copy Markdown
Member

cart commented Dec 9, 2021

bors r+

bors bot pushed a commit that referenced this pull request Dec 9, 2021
# Objective

The new renderer does not support any options yet for wgpu. These are needed for example for rendering wireframes (see #3193).

## Solution

I've ported WgpuOptions to bevy_render2.

The defaults match the defaults that were used before this PR (meaning, some specific options when target_arch = wasm32).

Additionally, I removed `Auto` from WgpuBackends and added `Primary`. The default will use primary or GL based on the target_arch.
@bors bors bot changed the title Ported WgpuOptions to bevy_render2 [Merged by Bors] - Ported WgpuOptions to bevy_render2 Dec 9, 2021
@bors bors bot closed this Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-Needs-Triage This issue needs to be labelled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants