Rendering without a vertex buffer #41
-
Does screen-13 support rendering without binding a vertex buffer (i.e. only using an index buffer)? I tried the most obvious thing and simply didn't set one during [2022-10-28T20:47:07Z ERROR screen_13::driver::instance] 🆘 vkCmdDrawIndexed: VkPipeline 0x4fac1c0000000032[] expects that this Command Buffer's vertex binding Index 0 should be set via vkCmdBindVertexBuffers. This is because pVertexBindingDescriptions[0].binding value is 0. The Vulkan spec states: All vertex input bindings accessed via vertex input variables declared in the vertex shader entry point's interface must have either valid or VK_NULL_HANDLE buffers bound (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkCmdDrawIndexed-None-04007) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for the detailed report! This is not currently supported, but probably should be. Adding it looks straight forward - I've created #42 to cover this use case. If you feel inclined, please check out the test that change adds to |
Beta Was this translation helpful? Give feedback.
Thanks for the detailed report!
This is not currently supported, but probably should be. Adding it looks straight forward - I've created #42 to cover this use case. If you feel inclined, please check out the test that change adds to
fuzzer.rs
and see if that works for you. I'd like to improve the API and use theInto<AnyBufferBinding>
pattern if possible so expect some changes over the next few days.