[vulkan] Use provided config property list

There's still a lot of work needed to separate out quake from
quakeforge, but this lets my test scene get a rather mangled scene
rendering (weird translucency: not sure what I've done wrong: probably
bad clear).
This commit is contained in:
Bill Currie 2024-02-01 22:05:08 +09:00
parent 11d970c7c9
commit 06d9b1a056
2 changed files with 11 additions and 0 deletions

View file

@ -128,6 +128,16 @@ vulkan_R_Init (struct plitem_s *config)
Vulkan_Compose_Init (vulkan_ctx);
if (config) {
auto samplers = PL_ObjectForKey (config, "samplers");
auto render_graph = PL_ObjectForKey (config, "render_graph");
if (!render_graph) {
Sys_Error ("render_graph not found in config");
}
if (!samplers) {
Sys_Error ("samplers not found in config");
}
QFV_LoadSamplerInfo (vulkan_ctx, samplers);
QFV_LoadRenderInfo (vulkan_ctx, render_graph);
} else {
const char *mode = vulkan_render_mode ? "main_def" : "main_fwd";
auto render_graph = Vulkan_GetConfig (vulkan_ctx, mode);

View file

@ -858,6 +858,7 @@ QFV_Render_DSManager (vulkan_ctx_t *ctx, const char *setName)
return ds;
}
}
Sys_Printf ("descriptor set '%s' not found\n", setName);
return 0;
}