Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown types when using latest vk_mem_alloc.h #7

Open
amengede opened this issue Oct 1, 2021 · 1 comment
Open

Unknown types when using latest vk_mem_alloc.h #7

amengede opened this issue Oct 1, 2021 · 1 comment

Comments

@amengede
Copy link

amengede commented Oct 1, 2021

Hi, I build the latest vk_mem_alloc.h, put it in the pyvma_build folder, removed the old vk_mem_alloc.h and ck_mem_alloc.cdef.h.
Unfortunately the compilers don't seem to be reading the type definitions. Should cdefs also be built for vulkan.h?

D:\dev\pyvma\pyvma\pyvma_build>g++ -std=c99 -P -Iinclude -o cdef/vk_mem_alloc.cdef.h vk_mem_alloc.h
cc1plus.exe: warning: command line option '-std=c99' is valid for C/ObjC but not for C++
vk_mem_alloc.h:455:5: error: 'PFN_vkFlushMappedMemoryRanges' does not name a type; did you mean 'PFN_vkMapMemory'?
PFN_vkFlushMappedMemoryRanges VMA_NULLABLE vkFlushMappedMemoryRanges;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFN_vkMapMemory
vk_mem_alloc.h:456:5: error: 'PFN_vkInvalidateMappedMemoryRanges' does not name a type
PFN_vkInvalidateMappedMemoryRanges VMA_NULLABLE vkInvalidateMappedMemoryRanges;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vk_mem_alloc.h:465:5: error: 'PFN_vkCmdCopyBuffer' does not name a type; did you mean 'PFN_vkDestroyBuffer'?
PFN_vkCmdCopyBuffer VMA_NULLABLE vkCmdCopyBuffer;
^~~~~~~~~~~~~~~~~~~
PFN_vkDestroyBuffer
vk_mem_alloc.h:583:5: error: 'VkInstance' does not name a type; did you mean 'VkImage'?
VkInstance VMA_NOT_NULL instance;
^~~~~~~~~~
VkImage
vk_mem_alloc.h:624:5: error: 'VkInstance' does not name a type; did you mean 'VkImage'?
VkInstance VMA_NOT_NULL instance;
^~~~~~~~~~
VkImage
vk_mem_alloc.h:1833:5: error: 'VkCommandBuffer' does not name a type; did you mean 'VkBuffer'?
VkCommandBuffer VMA_NULLABLE commandBuffer;
^~~~~~~~~~~~~~~
VkBuffer

D:\dev\pyvma\pyvma\pyvma_build>gcc -std=c99 -P -Iinclude -o cdef/vk_mem_alloc.cdef.h vk_mem_alloc.h
vk_mem_alloc.h:455:5: error: unknown type name 'PFN_vkFlushMappedMemoryRanges'
PFN_vkFlushMappedMemoryRanges VMA_NULLABLE vkFlushMappedMemoryRanges;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vk_mem_alloc.h:456:5: error: unknown type name 'PFN_vkInvalidateMappedMemoryRanges'
PFN_vkInvalidateMappedMemoryRanges VMA_NULLABLE vkInvalidateMappedMemoryRanges;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vk_mem_alloc.h:465:5: error: unknown type name 'PFN_vkCmdCopyBuffer'
PFN_vkCmdCopyBuffer VMA_NULLABLE vkCmdCopyBuffer;
^~~~~~~~~~~~~~~~~~~
vk_mem_alloc.h:583:5: error: unknown type name 'VkInstance'
VkInstance VMA_NOT_NULL instance;
^~~~~~~~~~
vk_mem_alloc.h:624:5: error: unknown type name 'VkInstance'
VkInstance VMA_NOT_NULL instance;
^~~~~~~~~~
vk_mem_alloc.h:1833:5: error: unknown type name 'VkCommandBuffer'
VkCommandBuffer VMA_NULLABLE commandBuffer;
^~~~~~~~~~~~~~~

@realitix
Copy link
Owner

realitix commented Oct 2, 2021

Hello @amengede, thanks for posting the issue. I don't have time right now to look at it but maybe later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants