[vulkan] Implement mouse-picking for light entities

Currently, only light entities get drawn to the entid buffer, and the
ids are simply displayed in a window for now (not very useful yet).
This commit is contained in:
Bill Currie 2023-08-07 17:47:49 +09:00
parent 95b660d7fd
commit 1745d3bccc
17 changed files with 697 additions and 46 deletions

View file

@ -629,6 +629,21 @@ QFV_Render_AddAttachments (vulkan_ctx_t *ctx, uint32_t num_attachments,
}
}
qfv_resobj_t *
QFV_FindResource (const char *name, qfv_renderpass_t *rp)
{
if (!rp->resources) {
return 0;
}
for (uint32_t i = 0; i < rp->resources->num_objects; i++) {
auto obj = &rp->resources->objects[i];
if (!strcmp (obj->name, name)) {
return obj;
}
}
return 0;
}
qfv_step_t *
QFV_FindStep (const char *name, qfv_job_t *job)
{