Daemon-vulkan infrastructure 2#1845
Conversation
|
Most of the changes are just the XML spec and existing generator code. |
afbdcb0 to
f8462a8
Compare
f8462a8 to
72c00bf
Compare
slipher
left a comment
There was a problem hiding this comment.
VulkanHeaders seems to be a third-party library, so it should go in libs. Is there some good reason to check in the files directly instead of using a submodule?
72c00bf to
4d9ae49
Compare
Most of it is not used by daemon-vulkan. |
|
So what is the future maintenance plan for VulkanHeaders: do we expect to maintain it ourselves or periodically sync updates from upstream? |
Periodic sync. Header generator rarely ever gets updates and likely would continue working as is without issue. |
2cdc4da to
2ce79c6
Compare
|
OK cool. In any case it should go in |
2ce79c6 to
64f9b54
Compare
|
Moved it. |
slipher
left a comment
There was a problem hiding this comment.
slightly modified version of the Khronos Vulkan header generator,
If there are modifications of the files in libs/ relative to upstream, would you mind checking in the original upstream version as the first commit, and then the local changes as a second commit? That way we can see what was changed in the history.
Also I request that the commit hash of the Vulkan Headers repo be recorded in the commit message.
| option( VULKAN_SPIRV_LTO "Enable link-time SPIR-V optimisations." ON ) | ||
|
|
||
| if( USE_VULKAN ) | ||
| add_executable( VulkanShaderParser "${DAEMON_DIR}/cmake/DaemonVulkan/VulkanShaderParser.cpp" ) |
There was a problem hiding this comment.
Host-mode tools mess up cross compiling, so it would be nice to rewrite that in Python at some point (non-blocking comment)
There was a problem hiding this comment.
Yeah probably. This is mostly just the #insert code from gl_shader.cpp, with support for recursion and glslangValidator calls.
6a64000 to
21f9e08
Compare
Sure, done. |
…s to regenerate the target
21f9e08 to
1fd0e0b
Compare
f81e205 to
984d775
Compare
Vulkan header generator and xml spec from https://github.com/KhronosGroup/Vulkan-Docs commit: 7fe2b623f13dabb885e35b953dd690f01093d4bb
984d775 to
cdfea57
Compare
Also add a script to generate all the headers we need along with function loading.
cdfea57 to
f10467d
Compare
Adds some more cmake changes required for daemon-vulkan, slightly modified version of the Khronos Vulkan header generator, as well as a shader generator with support for
#insert/#includeand SPIR-V generation. Also added some of the embed stuff from #1842 with more functionality.