Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Update for the wgpu grand refactor#503

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:wgpu-refactor
Aug 13, 2020
Merged

Update for the wgpu grand refactor#503
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:wgpu-refactor

Conversation

@kvark
Copy link
Copy Markdown
Member

@kvark kvark commented Aug 13, 2020

Depends on gfx-rs/wgpu#873

Copy link
Copy Markdown

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

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

This is an autogenerated code review.New suggestions: 1

Checker summary (by rust_clippy):
The tool has found 0 warnings, 15 errors.

The .monocodus config not found in your repo. Default config is used.
Check config documentation here

bors bot added a commit to gfx-rs/wgpu that referenced this pull request Aug 13, 2020
873: Grand cleanup and refactor of the descriptors in the API r=cwfitzgerald,grovesNL a=kvark

**Connections**
Cleanup follows gfx-rs/wgpu-rs#501
Fixes #871 
Fixes #848

**Description**
There is a lot of small and big things crumbled in here.

The major one is where descriptors live, and how they are parametrized. Logic is the following:
  - if something is useful by wgpu-rs's API leave it in `wgpu-types`
  - if *in addition* it's useful to `wgpu-native`(i.e. has `repr(C)`),  we possibly parametrize it (currently, only label is).
  - otherwise, the type is moved to `wgpu-core` and stripped of generics
  - remove all the builders

Some medium-sized things:
  - moves the subscriber out (#871)
  - moves the `RenderCommand` into the `draw` module (which is meant to contain shared things)
  - makes `TextureViewDescriptor` fields optional, but receives it directly now (#848)
  - moves stencil stuff out into `StencilStateDescriptor`, so that we can derive `Default` for it
  - stop accepting raw strings for labels in the `Device` API: neither the clients, or gfx-rs need that shape, and it can't be safe

Some smaller things:
  - using NonZeroU8 for anisotropy
  - using NonZeroU32 for descriptor count
  - putting sampler addressing modes into an array
  - add labels to command buffers and pipeline layouts
  - improves errors for exceeding binding limits

**Testing**
Tested on gfx-rs/wgpu-rs#503


Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@kvark kvark marked this pull request as ready for review August 13, 2020 03:35
@kvark
Copy link
Copy Markdown
Member Author

kvark commented Aug 13, 2020

bors r+

bors bot added a commit that referenced this pull request Aug 13, 2020
503: Update for the wgpu grand refactor r=kvark a=kvark

Depends on gfx-rs/wgpu#873

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

bors bot commented Aug 13, 2020

Build failed:

@kvark
Copy link
Copy Markdown
Member Author

kvark commented Aug 13, 2020

bors r+

bors bot added a commit that referenced this pull request Aug 13, 2020
503: Update for the wgpu grand refactor r=kvark a=kvark

Depends on gfx-rs/wgpu#873

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

bors bot commented Aug 13, 2020

Build failed:

@kvark
Copy link
Copy Markdown
Member Author

kvark commented Aug 13, 2020

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Aug 13, 2020

@bors bors bot merged commit 471d2a1 into gfx-rs:master Aug 13, 2020
@kvark kvark deleted the wgpu-refactor branch August 13, 2020 04:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant