Skip to content

How to use vkCmdSetVertexInputEXT #64

Closed Answered by tannergooding
TareHimself asked this question in Q&A
Discussion options

You must be logged in to vote
_vkCommandBufferManualImports.vkCmdSetVertexInputEXT = (delegate* unmanaged<VkCommandBuffer, uint, VkVertexInputBindingDescription2EXT*, uint, VkVertexInputAttributeDescription2EXT*, void>)vkGetDeviceProcAddr(vkDevice, (sbyte*)"vkCmdSetVertexInputEXT"u8.GetPointerUnsafe());

That is, you just use vkGetDeviceProcAddr to resolve the method for the specific device as detailed by https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetDeviceProcAddr.html

This can avoid dispatch overhead and generally be faster than had you resolved it otherwise; noting that vkGetDeviceProcAddr is valid for device or sub-objects created from device such as a VkQueue or VkCommandBuffer.

For other …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tannergooding
Comment options

Answer selected by TareHimself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants