Skip to content

[Merged by Bors] - Add multi draw indirect draw calls#6392

Closed
PixelDust22 wants to merge 3 commits intobevyengine:mainfrom
PixelDust22:feat/multi-draw-indirect
Closed

[Merged by Bors] - Add multi draw indirect draw calls#6392
PixelDust22 wants to merge 3 commits intobevyengine:mainfrom
PixelDust22:feat/multi-draw-indirect

Conversation

@PixelDust22
Copy link
Contributor

Objective

Solution

  • Added the corresponding wrapper methods to TrackedRenderPass

Changelog

Added multi_draw_* draw calls to TrackedRenderPass

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Oct 28, 2022
.multi_draw_indirect(indirect_buffer, indirect_offset, count);
}

/// Disptaches multiple draw calls from the active vertex buffer(s) based on the contents of the `indirect_buffer`.
Copy link

Choose a reason for hiding this comment

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

Dispatches

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch

Comment on lines +322 to +323
/// The indirect buffer must be long enough to account for `max_count` draws, however only `count` will
/// draws will be read. If `count` is greater than `max_count`, `max_count` will be used.
Copy link

@vacuus vacuus Oct 28, 2022

Choose a reason for hiding this comment

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

What does count refer to? Draws are issued; "draws will be read" is inconsistent. I want to fold the second sentence into the first; maybe "...however, only count draws, capped by max_count, will be issued". I don't like the use of "only" there.

@cart
Copy link
Member

cart commented Oct 28, 2022

bors r+

bors bot pushed a commit that referenced this pull request Oct 28, 2022
# Objective

- Allows bevy users to dispatch `multi_draw_indirect`, `multi_draw_indexed_indirect`,  `multi_draw_indirect_count`, `multi_draw_indexed_indirect_count` draw calls.
- Fixes #6216

## Solution

- Added the corresponding wrapper methods to `TrackedRenderPass`

---

## Changelog

> Added  `multi_draw_*` draw calls to `TrackedRenderPass`


Co-authored-by: Zhixing Zhang <me@neoto.xin>
@bors bors bot changed the title Add multi draw indirect draw calls [Merged by Bors] - Add multi draw indirect draw calls Oct 28, 2022
@bors bors bot closed this Oct 28, 2022
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

- Allows bevy users to dispatch `multi_draw_indirect`, `multi_draw_indexed_indirect`,  `multi_draw_indirect_count`, `multi_draw_indexed_indirect_count` draw calls.
- Fixes bevyengine#6216

## Solution

- Added the corresponding wrapper methods to `TrackedRenderPass`

---

## Changelog

> Added  `multi_draw_*` draw calls to `TrackedRenderPass`


Co-authored-by: Zhixing Zhang <me@neoto.xin>
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 targeted quality-of-life change that makes Bevy easier to use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose more wgpu::RenderPass draw APIs to RenderCommands

6 participants