#VkLayerInstanceDispatchTable not in vk_layer.h

1 messages · Page 1 of 1 (latest)

tawdry plaza
#

Hi!

I'm trying to cobble together a Vulkan layer, and I'm using this official resource as a guide (for v.1.3.239): https://vulkan.lunarg.com/doc/view/1.3.239.0/linux/LoaderLayerInterface.html#user-content-example-code-for-createinstance

I'm currently implementing vkCreateInstance, and obviously I have to set up the dispatch table for the call chain here. All the resources I find uses a struct called VkLayerInstanceDispatchTable from vk_layer.h, but I can't find those in the Vulkan headers (https://github.com/KhronosGroup/Vulkan-Headers)

I'm fairly new to both C++ and Vulkan so please go easy on me :aPES_Salute:

spiral orbit
#

please don't look at old docs and use a newer sdk

#

the file has since been changed to

A layer can use the VkLayerInstanceDispatchTable structure as a instance dispatch table (see include/vulkan/vk_dispatch_table_helper.h).

tawdry plaza
#

newer sdks are forward compatible with older loaders, I assume? also weird that I didn't find that struct even when searching the github repo

#

(compatible to the minor version anyway)

#

also thanks!

spiral orbit
tawdry plaza
#

I'm creating a layer for a game that runs the 1.3.239 loader, I should be fine using the 1.3.275 sdk?

spiral orbit
#

you will be fine with vulkan functions, yes, the loader and layer interface however might change between major versions so you may need more work to support 1.2 or a theoretical 1.4

tawdry plaza
#

lovely, thank you :)

spiral orbit
tawdry plaza
#

yeah the docs is not up to date