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

VkPipeline array type incorrect (compute example fails) #57

Closed
pieper opened this issue Jul 8, 2019 · 4 comments
Closed

VkPipeline array type incorrect (compute example fails) #57

pieper opened this issue Jul 8, 2019 · 4 comments

Comments

@pieper
Copy link

pieper commented Jul 8, 2019

(First - thanks for the cool package!).

Running the compute example fails with the trace below. I tried various fixes like ffi.new("VkPipeline*") etc but didn't find a way to fix it. I get the same behavior on linux and mac installations using either the pip package or installation from source.

It looks like this is related to #56.

$python example_mandelbrot_compute.py 
Traceback (most recent call last):
  File "example_mandelbrot_compute.py", line 562, in <module>
    app.run()
  File "example_mandelbrot_compute.py", line 134, in run
    self.createCommandBuffer()
  File "example_mandelbrot_compute.py", line 517, in createCommandBuffer
    vkCmdBindPipeline(self.__commandBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, self.__pipeline)
  File "/usr/local/lib/python2.7/dist-packages/vulkan-1.1.99.1-py2.7.egg/vulkan/_vulkan.py", line 6340, in vkCmdBindPipeline
    result = _callApi(lib.vkCmdBindPipeline, commandBuffer,pipelineBindPoint,pipeline)
  File "/usr/local/lib/python2.7/dist-packages/vulkan-1.1.99.1-py2.7.egg/vulkan/_vulkan.py", line 4962, in _callApi
    return fn(*fn_args)
TypeError: initializer for ctype 'struct VkPipeline_T *' must be a pointer to same type, not cdata 'struct VkPipeline_T *[1]'
Exception TypeError: "'NoneType' object is not callable" in <bound method ComputeApplication.__del__ of <__main__.ComputeApplication object at 0x7fa3387d3810>> ignored
@realitix
Copy link
Owner

realitix commented Jul 8, 2019

Hello,
Thanks for the report. Index I didn't updater the contrib tests. I will take a look.

@pieper
Copy link
Author

pieper commented Jul 11, 2019

Is there a version of the code in github or pypy that should work for the compute example?

@realitix
Copy link
Owner

You can try at this commit: 6033845

@pieper
Copy link
Author

pieper commented Jul 13, 2019

Yes, that one works - thanks!

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