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

extensions/khr/draw_indirect_count: Use the right function pointer for non-indexed draw call #695

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

teoxoy
Copy link
Contributor

@teoxoy teoxoy commented Dec 21, 2022

No description provided.

Copy link
Collaborator

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

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

Nice catch! It has been this way since the extension was introduced in 2020 via #262 (CC @gabdube), and nobody noticed :) (likely because it was stabilized).

Can you document this in the readme?:

diff --git a/Changelog.md b/Changelog.md
index 944fec8..943e6f7 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased] - ReleaseDate
 
+### Fixed
+
+- extensions/khr/draw_indirect_count: use `cmd_draw_indirect_count_khr` instead of `cmd_draw_indexed_indirect_count_khr` for non-indexed draw call. (#695)
+
 ### Added
 
 - Update Vulkan-Headers to 1.3.238 (#688)

@MarijnS95 MarijnS95 changed the title Fix extension-provided draw_indirect_count extensions/khr/draw_indirect_count: use cmd_draw_indirect_count_khr instead of cmd_draw_indexed_indirect_count_khr for non-indexed draw call Dec 21, 2022
@MarijnS95 MarijnS95 changed the title extensions/khr/draw_indirect_count: use cmd_draw_indirect_count_khr instead of cmd_draw_indexed_indirect_count_khr for non-indexed draw call extensions/khr/draw_indirect_count: use the right function pointer for non-indexed draw call Dec 21, 2022
@MarijnS95 MarijnS95 changed the title extensions/khr/draw_indirect_count: use the right function pointer for non-indexed draw call extensions/khr/draw_indirect_count: Use the right function pointer for non-indexed draw call Dec 21, 2022
@teoxoy
Copy link
Contributor Author

teoxoy commented Dec 21, 2022

Thanks for the quick review!

Nice catch! It has been this way since the extension was introduced in 2020 via #262 (CC @gabdube), and nobody noticed :) (likely because it was stabilized).

Yeah, it seems so, we only noticed because we recently started using the extension exclusively as opposed to either the one in core 1.2 or the ext.
Crediting @pwouik (gfx-rs/wgpu#3079 (comment)).

@gabdube
Copy link
Contributor

gabdube commented Dec 26, 2022

Ouch, sorry about that

@cwfitzgerald
Copy link

What's the status over here?

@MarijnS95 MarijnS95 merged commit 043c00c into ash-rs:master Jan 11, 2023
MarijnS95 pushed a commit that referenced this pull request Jan 11, 2023
@teoxoy teoxoy deleted the patch-1 branch January 11, 2023 13:25
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.

4 participants