Skip to content

hal/dx12: support base vertex/instance#1731

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:dx12-base
Jul 27, 2021
Merged

hal/dx12: support base vertex/instance#1731
bors[bot] merged 1 commit intogfx-rs:masterfrom
kvark:dx12-base

Conversation

@kvark
Copy link
Copy Markdown
Member

@kvark kvark commented Jul 27, 2021

Connections
Fixes #1725
Depends on gfx-rs/naga#1141, gfx-rs/d3d12-rs#34, and gfx-rs/d3d12-rs#35 (thanks @msiglreith for quick reviews!).

Description
We allocate one root parameter covering the special constant buffer view with root constants. We set the root constants for each draw, but only on change.

This PR does not handle the indirect case. I'll follow-up with this.

Testing
Not thoroughly tested, but @cwfitzgerald already implemented a test for this, and this PR enables it on DX12.
Also, examples still seem to work :)

@kvark kvark requested a review from cwfitzgerald July 27, 2021 06:00
Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Looks right and if it passes tests (woooooooooooooo!) I'm content!

bors r+

@cwfitzgerald
Copy link
Copy Markdown
Member

errr, CI mad

bors r-

bors bot added a commit that referenced this pull request Jul 27, 2021
1731: hal/dx12: support base vertex/instance r=cwfitzgerald a=kvark

**Connections**
Fixes #1725
Depends on gfx-rs/naga#1141, gfx-rs/d3d12-rs#34, and gfx-rs/d3d12-rs#35 (thanks `@msiglreith` for quick reviews!).

**Description**
We allocate one root parameter covering the special constant buffer view with root constants. We set the root constants for each draw, but only on change.

This PR does *not* handle the indirect case. I'll follow-up with this.

**Testing**
Not thoroughly tested, but `@cwfitzgerald` already implemented a test for this, and this PR enables it on DX12.
Also, examples still seem to work :)


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

bors bot commented Jul 27, 2021

Canceled.

@kvark
Copy link
Copy Markdown
Member Author

kvark commented Jul 27, 2021

gooood CI
bors r=cwfitzgerald

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jul 27, 2021

@bors bors bot merged commit 2940347 into gfx-rs:master Jul 27, 2021
@kvark kvark deleted the dx12-base branch July 27, 2021 13:15
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.

Support startVertex/startInstance on DX12

2 participants