Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add some of the missing methods to TrackedRenderPass #3401

Closed
wants to merge 4 commits into from

Conversation

aloucks
Copy link
Contributor

@aloucks aloucks commented Dec 20, 2021

Objective

Add missing methods to TrackedRenderPass

  • set_push_constants
  • set_viewport
  • insert_debug_marker
  • push_debug_group
  • pop_debug_group
  • set_blend_constant

https://docs.rs/wgpu/0.12.0/wgpu/struct.RenderPass.html

I need set_push_constants but started adding the others as I noticed they were also missing. The draw indirect family of methods are still missing as are the timestamp query methods.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Dec 20, 2021
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Usability A simple quality-of-life change that makes Bevy easier to use and removed S-Needs-Triage This issue needs to be labelled labels Dec 20, 2021
@alice-i-cecile
Copy link
Member

Thanks for tackling this; I saw your comment in #1369 and was about to attempt this myself in some form or another :)

@aloucks
Copy link
Contributor Author

aloucks commented Dec 20, 2021

We probably need to eventually add state for set_viewport (and set_scissor_rect for that matter). As pointed out in the comment from the PR that added set_scissor_rect, it would be quite unexpected if something changed the scissor rect and didn't change it back.

@cart
Copy link
Member

cart commented Dec 20, 2021

Looks good to me!

@cart
Copy link
Member

cart commented Dec 20, 2021

bors r+

bors bot pushed a commit that referenced this pull request Dec 20, 2021
# Objective

Add missing methods to `TrackedRenderPass`

- `set_push_constants`
- `set_viewport`
- `insert_debug_marker`
- `push_debug_group`
- `pop_debug_group`
- `set_blend_constant`

https://docs.rs/wgpu/0.12.0/wgpu/struct.RenderPass.html

I need `set_push_constants` but started adding the others as I noticed they were also missing. The `draw indirect` family of methods are still missing as are the `timestamp query` methods.
@bors bors bot changed the title Add some of the missing methods to TrackedRenderPass [Merged by Bors] - Add some of the missing methods to TrackedRenderPass Dec 20, 2021
@bors bors bot closed this Dec 20, 2021
mockersf pushed a commit to mockersf/bevy that referenced this pull request Dec 21, 2021
# Objective

Add missing methods to `TrackedRenderPass`

- `set_push_constants`
- `set_viewport`
- `insert_debug_marker`
- `push_debug_group`
- `pop_debug_group`
- `set_blend_constant`

https://docs.rs/wgpu/0.12.0/wgpu/struct.RenderPass.html

I need `set_push_constants` but started adding the others as I noticed they were also missing. The `draw indirect` family of methods are still missing as are the `timestamp query` methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Usability A simple quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants