Skip to content

Make Vulkan optional on Apple#333

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:optional-vulkan
Sep 9, 2019
Merged

Make Vulkan optional on Apple#333
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:optional-vulkan

Conversation

@kvark
Copy link
Copy Markdown
Member

@kvark kvark commented Sep 8, 2019

Fixes #321

@kvark kvark requested a review from grovesNL September 8, 2019 01:27

#[derive(Debug, Default)]
pub struct Hubs {
#[cfg(any(not(any(target_os = "ios", target_os = "macos")), feature = "gfx-backend-vulkan"))]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why can't we only write feature = "gfx-backend-vulkan" here, like some of the other places in this commit? It seems like they should all be consistent

@kvark
Copy link
Copy Markdown
Member Author

kvark commented Sep 9, 2019

I don't think we can have just "feature = vulkan" in the code since on some platforms it's not a feature. The reason we have a few of those lines in this PR is because there is a platform-dependent config gate somewhere above already, e.g. #[cfg(target_os = "ios")].

bors r=grovesnL

bors bot added a commit that referenced this pull request Sep 9, 2019
333: Make Vulkan optional on Apple r=grovesnL a=kvark

Fixes #321

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Sep 9, 2019

Build succeeded

@bors bors bot merged commit fe89c52 into gfx-rs:master Sep 9, 2019
@kvark kvark deleted the optional-vulkan branch September 9, 2019 01:51
kvark added a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
336: Update wgpu dependency r=kvark a=kvark

Includes a fix to gfx-rs#333

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
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.

Disable Vulkan dependency at compile time on Apple platforms

2 participants