mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[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:
parent
30b38d7f3f
commit
51f3d9b777
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue