Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Support num_workgroups builtin#1217

Merged
kvark merged 1 commit intogfx-rs:masterfrom
kvark:num-workgroups
Aug 18, 2021
Merged

Support num_workgroups builtin#1217
kvark merged 1 commit intogfx-rs:masterfrom
kvark:num-workgroups

Conversation

@kvark
Copy link
Copy Markdown
Member

@kvark kvark commented Aug 17, 2021

See gpuweb/gpuweb#1684 and gpuweb/gpuweb#944

It's mostly straightforward, except for HLSL, where it requires host API collaboration. Just like with base instance/vertex, the host API needs to provide the info in the root signature.

@kvark kvark requested a review from jimblandy August 17, 2021 05:13
Copy link
Copy Markdown
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Okay. This looks good overall, but I'm not sure I understand what's going on in the HLSL output. I don't understand why it needs to be so complicated. But if I've misunderstood, and it really needs to do that, then this is fine.

Comment thread src/back/hlsl/writer.rs
Comment thread src/back/hlsl/conv.rs Outdated
Comment thread src/back/hlsl/writer.rs Outdated
@kvark
Copy link
Copy Markdown
Member Author

kvark commented Aug 18, 2021

The output is a bit simpler now. Thanks for the review!

@kvark kvark merged commit 79d899f into gfx-rs:master Aug 18, 2021
@kvark kvark deleted the num-workgroups branch August 18, 2021 02:22
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.

2 participants