working on Vulkan descriptor sets

This commit is contained in:
2025-02-19 21:07:16 +01:00
parent 4bbbf4e5dd
commit c8f6245c2c
12 changed files with 127 additions and 36 deletions

View File

@@ -60,7 +60,7 @@ int main(void)
CHECK_PULSE_HANDLE_RETVAL(pass, 1);
PulseBindStorageBuffers(pass, 0, &buffer, 1);
PulseBindComputePipeline(pass, pipeline);
PulseDispatchComputations(pass, 8, 8, 8);
PulseDispatchComputations(pass, 32, 32, 1);
PulseEndComputePass(pass);
if(!PulseSubmitCommandList(device, cmd, fence))
@@ -70,9 +70,10 @@ int main(void)
PulseReleaseCommandList(device, cmd);
PulseDestroyFence(device, fence);
PulseDestroyBuffer(device, buffer);
PulseDestroyComputePipeline(device, pipeline);
PulseDestroyBuffer(device, buffer);
PulseDestroyDevice(device);
PulseUnloadBackend(backend);
puts("Successfully loaded Pulse using Vulkan !");