How to use vkCmdSetVertexInputEXT #64
-
How do I call vkCmdSetVertexInputEXT, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Extensions and many other APIs are not guaranteed exports and may not even be optimal to call via the export if they exist as one. Rather, such APIs should be queried via TerraFX.Interop.Vulkan provides several This helps ensure correctness by only exposing guaranteed exports and pushing developers to correctly enable features and resolve the non-static exports as part of initialization. This can also lead to better overall performance via bypassing the additional checks/queries that might be done for a general entry point that cannot be aware of whether the appropriate setup has taken place and thus must do additional validation or dispatch. |
Beta Was this translation helpful? Give feedback.
-
Thank you, but could I have an example of how to load and call a function using the c# bindings ? |
Beta Was this translation helpful? Give feedback.
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.htmlThis can avoid dispatch overhead and generally be faster than had you resolved it otherwise; noting that
vkGetDeviceProcAddr
is valid fordevice
or sub-objects created fromdevice
such as aVkQueue
orVkCommandBuffer
.For other …