Glavnokoman / vuh

Vulkan compute for people
https://glavnokoman.github.io/vuh
MIT License
346 stars 34 forks source link

Command Buffers? #29

Open unit-404 opened 5 years ago

unit-404 commented 5 years ago

I suggest to add command buffer when executing programs...

   auto queue = device.queues().at(0);
   auto cmd = device.command(); // something alike this
   auto program = vuh::Program<Specs, Params>(device, "saxpy.spv"); // load shader
   program.grid(128/64).spec(64)(cmd, {128, 0.1}, d_y, d_x); // write to command
   queue.submit(cmd); // submit command 
Glavnokoman commented 5 years ago

Better queues handling is coming with the next feature release, I just do not have much time to work on it now. And then we see whether explicit buffers is still the feature you want.