cg-tuwien / Auto-Vk

Afterburner for Vulkan development; Auto-Vk is a modern C++ low-level convenience and productivity layer atop Vulkan-Hpp.
MIT License
281 stars 18 forks source link

draw_indexed_indirect_count and fill-fix for zero bytes copy #33

Closed alexc71 closed 3 years ago

alexc71 commented 3 years ago
  1. Added command_buffer_t::draw_indexed_indirect_count

  2. Fixed buffer_t::fill with data size zero This used to crash/fail an assertion, if the buffer to fill is on device memory, due to trying to allocate a 0-byte staging buffer. In the fixed version, both staging buffer creation and the copy command are skipped if data size is zero, but the synchronization calls are still executed, as they may be needed by the calling application.