Closed axsaucedo closed 3 years ago
It seems that the issue was not with the PyShader library but with the interface in the eval_op_algo_data_def
function. It actually works correctly, I initially confirmed this by dumping the bytes into a file and running it, and now I've fixed it so the code above runs as expected. Thank you, I'll share the blog post once it's published 👍
[...] our Vulkan Kompute project
Impressive!
Great project, thank you for creating it. I'm currently working on using it to integrate with our Vulkan Kompute project specifically through the Kompute Python SDK.
The initial basic example I have to showcase the workflow is a basic multiplication operation as follows:
Unfortunately when running this, it seems to fail when creating the Vulkan Pipeline, which seems to be due to an error on the shader structure, namely the error is
Error reading file: #
, which seems to happen if the shader doesn't have the expected structure.When introspecting the shader I don't think it's possible to specify things like the version of the shader, if you look at the current shader that works correctly (this is the glsl code), the main difference is that it contains the
#version 450
definition.Have you come across this issue before? I would be quite keen to get this working, as I'm planning to write a blog post similar to the ones outlined in the end to end examples and integration with this would make it fully pythonic, so I'd be keen to do it using this library.
Thanks, let me know if you need further details to get more insights on what may be the issue.
Edit: If you would like to try running the example above, there is a slight fix required that is currently in the branch
python_shader_extension
, which would require runningpip install .
from that branch to install thekompute
Python package.