Skip to content

Check surface compatibility#545

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:surface
Mar 31, 2020
Merged

Check surface compatibility#545
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:surface

Conversation

@kvark
Copy link
Copy Markdown
Member

@kvark kvark commented Mar 30, 2020

Fixes #543
Follows the proposal of webgpu-native/webgpu-headers#39

@kvark kvark requested a review from grovesNL March 30, 2020 14:36
@kvark kvark added this to the Version 0.5 milestone Mar 30, 2020
Copy link
Copy Markdown
Collaborator

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

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

Thank you!

type Filter = Mutex<IdentityManager>;
fn spawn(&self) -> Self::Filter {
Mutex::new(IdentityManager::default())
fn spawn(&self, min_index: Index) -> Self::Filter {
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.

Could you explain why min_index is useful for Backend::Empty only? It seems like we're trying to avoid colliding with SurfaceId::ERROR but I'm wondering why it's not necessary to do this for other IDs and backends

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I should put a comment in there. The reason is because Empty == 0. So only ID=0 with Epoch=0 on Empty backend ends up with u64 value == 0. Other backends are guaranteed to be non-zero in raw values.

@kvark
Copy link
Copy Markdown
Member Author

kvark commented Mar 31, 2020

bors r=grovesNL

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Mar 31, 2020

Build succeeded

@bors bors bot merged commit 05ba7a5 into gfx-rs:master Mar 31, 2020
@kvark kvark deleted the surface branch April 1, 2020 21:50
bors bot added a commit that referenced this pull request Apr 4, 2020
546: NonZero internal Id representation r=grovesNL a=kvark

Fixes  #544
Based on #545 
Blocked by mozilla/cbindgen#500

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
bors bot added a commit that referenced this pull request Apr 4, 2020
546: NonZero internal Id representation r=grovesNL a=kvark

Fixes  #544
Based on #545 
Blocked by mozilla/cbindgen#500

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
kvark pushed a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
545: Remove bake.frag from shadow example r=kvark a=yutannihilation

Now that `fragment_stage` is a `Option`, I guess this is the case when we don't need fragment shader.

Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.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.

supports_queue_family assertion fails, possibly because of two different gpus

2 participants