From 5ffd797a83ffd3ebcbb8a05c03cb4409bd3722ad Mon Sep 17 00:00:00 2001 From: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> Date: Wed, 11 Jan 2023 11:27:26 +0100 Subject: [PATCH] extensions/khr/draw_indirect_count: Use the right function pointer for non-indexed draw call (#695) --- Changelog.md | 4 ++++ ash/src/extensions/khr/draw_indirect_count.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 944fec8..709b237 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update Vulkan-Headers to 1.3.238 (#688) +### Fixed + +- `VK_KHR_draw_indirect_count`: use `cmd_draw_indirect_count_khr` instead of `cmd_draw_indexed_indirect_count_khr` for non-indexed draw call (#695) + ## [0.37.1] - 2022-11-23 ### Changed diff --git a/ash/src/extensions/khr/draw_indirect_count.rs b/ash/src/extensions/khr/draw_indirect_count.rs index 75fbff5..f35ecbe 100644 --- a/ash/src/extensions/khr/draw_indirect_count.rs +++ b/ash/src/extensions/khr/draw_indirect_count.rs @@ -51,7 +51,7 @@ impl DrawIndirectCount { max_draw_count: u32, stride: u32, ) { - (self.fp.cmd_draw_indexed_indirect_count_khr)( + (self.fp.cmd_draw_indirect_count_khr)( command_buffer, buffer, offset,