mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-03 01:51:02 +00:00
[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:
parent
95b660d7fd
commit
1745d3bccc
17 changed files with 697 additions and 46 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue