[vulkan] Fix particle local and dispatch sizes

This gets particles working in renderdoc, but they're quite broken
stand-alone, which I think means that synchronization is a problem.
This commit is contained in:
Bill Currie 2022-11-28 11:09:20 +09:00
parent 30b38d7f3f
commit 51f3d9b777
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#version 450
layout (local_size_x = 32, local_size_y = 32) in;
layout (local_size_x = 1, local_size_y = 1) in;
struct Particle {
vec4 pos;

View file

@ -449,7 +449,7 @@ particles_update (qfv_renderframe_t *rFrame)
};
QFV_PushConstants (device, packet->cmd, pctx->physics_layout,
2, push_constants);
dfunc->vkCmdDispatch (packet->cmd, 8, 8, 8);
dfunc->vkCmdDispatch (packet->cmd, MaxParticles, 1, 1);
dfunc->vkCmdSetEvent (packet->cmd, pframe->physicsEvent,
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT);
QFV_PacketSubmit (packet);